Defines a full regular (spatial) grid.
Constructor function of the grid.par
-class
.
grid.par(
n,
min,
max = min + (n - 1) * lag,
lag = (max - min)/(n - 1),
dimnames = names(min)
)
integer vector; number of nodes in each dimension.
vector; minimum values of the coordinates.
vector; maximum values of the coordinates (optional).
vector; lag in each dimension (optional).
character vector; names used to label the dimensions.
Returns an object of class grid.par
, a list with the arguments as components
and an additional component $nd = length(n)
.
All parameters must have the same length.
Only one of the arguments max
or lag
must be specified.
S3 'version' of the GridTopology
-class
of the sp package.