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)

