sp (version 0.9-74)

SpatialPixelsDataFrame: define spatial grid with attribute data

Description

defines spatial grid by offset, cell size and dimensions

Usage

SpatialPixelsDataFrame(points, data, tolerance = sqrt(.Machine$double.eps), 
		proj4string = CRS(as.character(NA)), round=NULL, fuzz.tol=3)
SpatialGridDataFrame(grid, data, proj4string = CRS(as.character(NA)))

Arguments

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
round
default NULL, otherwise a value passed to as the digits argument to round for setting cell size
fuzz.tol
default 3 - a tuning argument to attempt to detect fuzz - the ratio of row/col coordinates to unique row/col coordinates
proj4string
object of class CRS-class in the first form only used when points does not inherit from Spatial-class

Value

See Also

gridded, gridded<-, SpatialGrid, SpatialGrid-class

Examples

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

Run the code above in your browser using DataCamp Workspace