db.grid.init {RGeoS} | R Documentation |
Initialize a Grid Data Base calculated from an already existing Db
db.grid.init(db, nodes = NA, origin=NA, extend=NA, margin=0)
db |
The |
nodes |
Array containing the number of cells on each axis. If not defined, a constant value is provided, equal to 10. If a constant is entered, this same value is used for each axis. |
origin |
When provided, this array overwrites the origin as calculated from the input Db |
extend |
When provided, this array overwrites the extension as calculated from the input Db |
margin |
This array provides the percentage by which the initial extension must be multiplied to calculate the margin. The margin is expressed in percentage. This may be either an array (of dimension ndim) or a constant value which will be considered for each direction. If the argument 'origin' is not provided, the minimum (along each axis) is decreased by this margin. If the argument 'extend' is not provided, the extension (along each axis) is increased by this margin multiplied by 1 (if the origin is defined) or 2 otherwise. |
The db-class
newly created