db.stat.grid {RGeostats} | R Documentation |
Calculate the statistics for a set of variables in the cells of a Grid
db.stat.grid(db, dbgrid, fun = "mean", names = db.getname(db,"z",1), radius=0, radix="Stats", modify.target=db.locmod())
db |
The |
dbgrid |
The |
fun |
The code giving the operation that must be performed between the variables at the same point:
|
names |
List of names of attributes to be processed. For more information
see |
radius |
Dimension of the neighborhood radius (given in number of cells). If the radius is 0 (default value), the value of a cell is the 'operation' performed on the population of samples belonging to that cell. If the radius is 1, the 'operation' is performed on the central cell as well as the surrounding cells of rank 1 in all space dimension. |
radix |
Radix of the name given to the variable containing the statistics |
modify.target |
Decides whether or not the newly created variables will have their
locator defined or not. For more information, see |
To each variable belonging to the input Db, corresponds a variable in the output Grid Db containing the calculated statistics.