powered by
class for defining a rectangular grid of arbitrary dimension
Objects are created by using e.g.
GridTopology(c(0,0), c(1,1), c(5,5))
see SpatialGrid
cellcentre.offset
numeric; vector with the smallest centroid coordinates for each dimension; coordinates refer to the cell centre
cellsize
numeric; vector with the cell size in each dimension
cells.dim
integer; vector with number of cells in each dimension
signature(x = "SpatialGrid"): calculates coordinates for each point on the grid
signature(x = "SpatialGrid")
signature(object = "SpatialGrid"): summarize object
signature(object = "SpatialGrid")
signature(from = "GridTopology", to = "data.frame"): convert to data.frame with columns cellcentre.offset, cellsize and cells.dim
signature(from = "GridTopology", to = "data.frame")
Edzer Pebesma, edzer.pebesma@uni-muenster.de
SpatialGridDataFrame-class, SpatialGrid-class
SpatialGridDataFrame-class
SpatialGrid-class
x = GridTopology(c(0,0), c(1,1), c(5,5)) class(x) x summary(x) coordinates(x) y = SpatialGrid(grid = x) class(y) y
Run the code above in your browser using DataLab