db.upscale {RGeoS} | R Documentation |
Calculate the statistics for a set of variables in the cells of a Grid
db.upscale(db, dbgrid, fun = "mean", names = NA, ngrep=NA, radix=NA, modify.target=TRUE)
db |
The |
dbgrid |
The |
fun |
The code giving the operation that must be performed between the variables at the same point:
|
names |
List of the names of the attributes to be processed |
ngrep |
Generic name for the attributes. If defined, it overwrites the 'names' argument |
radix |
Radix of the name given to the variable containing the statistics |
modify.target |
When TRUE, the results are set as new target variables in the Db. |
To each variable belonging to the input Db, corresponds a variable in the output Grid Db containing the calculated statistics.