blockstat {RGeostats}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), 
cuts=NA, radix = "Stats", modify.target = db.locmod())

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

  • ore : Ore quantity

  • metal : Metal quantity

name1

Name of the first variable

name2

Name of the second variable

cuts

Array of cutoff values used for calculating ore and metal quantities.

radix

Radix of the name given to the output variable

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

Value

The grid db-class where the calculated variable has been added.


[Package RGeostats version 11.1.1 Index]