blockstat {RGeoS} | R Documentation |
Statistics in block cells
Description
Calculate the statistics of data within cells of a block system
Usage
blockstat(dbgrid, db, fun = "mean",
name1 = db.getname(db,"z",1),
name2 = db.getname(db,"z",2),
radix = NA, modify.target = TRUE)
Arguments
dbgrid |
The db-class containing the grid of cells where the calculations must be performed
|
db |
The db-class containing the target data
|
fun |
Type of operation to be calculated:
count : Number of active values
mean : Mean of the first variable
sum : Sum of the first variable
stdv : Standard Devaition of the first variable
var : Variance of the first variable
mean2 : Mean of the second variable
sum2 : Sum of the second variable
std2 : Standard Deviation of the second variable
cov : Covariance between the two variables
corr : Correlation between the two variables
mini : Minimum of the first variable
maxi : Maximum of the first variable
|
name1 |
Name of the first variable
|
name2 |
Name of the second variable
|
radix |
Radix of the name given to the output variable
|
modify.target |
When TRUE, the results are set as new target variables in the output db-class .
|
Value
The grid db-class
where the calculated variable has been added.
[Package
RGeoS version 9.1.1
Index]