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)

