dimensions-methods            package:sp            R Documentation

_r_e_t_r_i_e_v_e _s_p_a_t_i_a_l _d_i_m_e_n_s_i_o_n_s _f_r_o_m _s_p_a_t_i_a_l _d_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     retrieves spatial dimensions box from spatial data

_U_s_a_g_e:

             dimensions(obj)

_A_r_g_u_m_e_n_t_s:

     obj: object deriving from class "Spatial" 

_V_a_l_u_e:

     two-column matrix; the first column has the minimum, the second
     the maximum values; rows represent the spatial dimensions

_M_e_t_h_o_d_s:

     _o_b_j = "_S_p_a_t_i_a_l" object deriviving from class "Spatial" 

_E_x_a_m_p_l_e_s:

     # just 9 points on a grid:
     x <- c(1,1,1,2,2,2,3,3,3)
     y <- c(1,2,3,1,2,3,1,2,3)
     xy <- cbind(x,y)
     S <- SpatialPoints(xy)
     dimensions(S)

     # data.frame
     data(meuse.grid)
     coordinates(meuse.grid) <- ~x+y
     gridded(meuse.grid) <- TRUE
     dimensions(meuse.grid)

