SpatialPixelsDataFrame          package:sp          R Documentation

_d_e_f_i_n_e _s_p_a_t_i_a_l _g_r_i_d _w_i_t_h _a_t_t_r_i_b_u_t_e _d_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     defines spatial grid by offset, cell size and dimensions

_U_s_a_g_e:

     SpatialPixelsDataFrame(points, data, tolerance = 10 * .Machine$double.eps, 
                     proj4string = CRS(as.character(NA)))
     SpatialGridDataFrame(grid, data, proj4string = CRS(as.character(NA)))

_A_r_g_u_m_e_n_t_s:

  points: coordinates, either as numeric matrix or as object of class
          SpatialPoints-class 

    grid: grid topology; object of class GridTopology-class 

    data: data.frame; contains the attribute (actual grid) data 

tolerance: precision up to which extent points should be  exactly on a
          grid 

proj4string: object of class CRS-class in the first form only used when
          'points' does not inherit from Spatial-class

_V_a_l_u_e:

     SpatialPixelsDataFrame returns an object of class
     SpatialPixelsDataFrame-class; SpatialGridDataFrame returns an
     object of class SpatialGridDataFrame-class.

_N_o_t_e:

     SpatialPixels stores grid topology and coordinates of the actual
     points, which may be in the form of a subset (set of pixels) of a
     full grid. To find out or change this, see fullgrid and
     SpatialGrid-class.

_A_u_t_h_o_r(_s):

     Edzer J. Pebesma

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     gridded, "gridded<-", SpatialGrid, SpatialGrid-class

_E_x_a_m_p_l_e_s:

     data(meuse.grid)
     m = SpatialPixelsDataFrame(points = meuse.grid[c("x", "y")], data = meuse.grid)
     class(m)
     summary(m)

