View source: R/SpatialGridDataFrame-methods.R
SpatialPixelsDataFrame | R Documentation |
defines spatial grid by offset, cell size and dimensions
SpatialPixelsDataFrame(points, data, tolerance = sqrt(.Machine$double.eps),
proj4string = CRS(as.character(NA)), round = NULL, grid = NULL)
SpatialGridDataFrame(grid, data, proj4string = CRS(as.character(NA)))
points |
coordinates, either as numeric matrix or as object of class SpatialPoints-class |
grid |
grid topology; object of class GridTopology-class; for
calls to |
data |
data.frame; contains the attribute (actual grid) data |
tolerance |
precision up to which extent points should be exactly on a grid |
round |
default NULL, otherwise a value passed to as the digits argument to |
proj4string |
object of class CRS-class in the first
form only used when |
SpatialPixelsDataFrame returns an object of class SpatialPixelsDataFrame-class; SpatialGridDataFrame returns an object of class SpatialGridDataFrame-class.
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.
Edzer Pebesma
gridded, gridded<-, SpatialGrid, SpatialGrid-class
data(meuse.grid)
m = SpatialPixelsDataFrame(points = meuse.grid[c("x", "y")], data = meuse.grid)
class(m)
summary(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.