db.upscale {RGeoS}R Documentation

Statistics for a set of variables on a grid

Description

Calculate the statistics for a set of variables in the cells of a Grid

Usage

db.upscale(db, dbgrid, fun = "mean", names = NA, ngrep=NA,
		 radix=NA, modify.target=TRUE)

Arguments

db

The db-class structure where the variables are read

dbgrid

The db-class Grid structure where the statistics are stored

fun

The code giving the operation that must be performed between the variables at the same point:

  • "num" : Number of valid samples

  • "mean" : Mean over the valid samples

  • "var" : Variance over the valid samples

  • "stdv" : Standard deviation over the valid samples

  • "mini" : Minimum over the valid samples

  • "maxi" : Maximum over the valid samples

  • "plus" : Number of positive values

  • "moins" : Number of negative values

  • "zero" : Number of zero values

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.

Value

To each variable belonging to the input Db, corresponds a variable in the output Grid Db containing the calculated statistics.

See Also

db-class


[Package RGeoS version 9.1.1 Index]