GridTopology-class

0th

Percentile

Class "GridTopology"

class for defining a rectangular grid of arbitrary dimension

Keywords
classes
Objects from the Class

Objects are created by using e.g.

GridTopology(c(0,0), c(1,1), c(5,5))

see SpatialGrid

Slots

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

Methods

coordinates

signature(x = "SpatialGrid"): calculates coordinates for each point on the grid

summary

signature(object = "SpatialGrid"): summarize object

coerce

signature(from = "GridTopology", to = "data.frame"): convert to data.frame with columns cellcentre.offset, cellsize and cells.dim

See Also

SpatialGridDataFrame-class, SpatialGrid-class

Aliases
  • GridTopology-class
  • print.summary.GridTopology
  • summary,GridTopology-method
  • show,GridTopology-method
  • show,summary.GridTopology-method
  • coerce,GridTopology,data.frame-method
  • coerce,SpatialGrid,GridTopology-method
  • coerce,SpatialPixels,GridTopology-method
Examples
# NOT RUN {
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
# }
Documentation reproduced from package sp, version 1.3-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.