db.proportion {RGeoS} | R Documentation |
Compute proportions of a variable of a Db into a Grid Db
db.proportion(db1, dbgrid, nfac1max = NA, nfac2max = NA, radix = NA, modify.target = TRUE)
db1 |
The |
dbgrid |
The |
nfac1max |
When defined, it defines the maximum value for a sample for the first variable to be considered as valid. If not defined, the number of facies (for the first variable) is defined as the maximum facies value encountered in the file. |
nfac2max |
When defined, it defines the maximum value for a sample for the second variable to be considered as valid. If not defined, the number of facies (for the second variable) is defined as the maximum facies value encountered in the file. |
radix |
Radix of the name given to the variables storing the results in the output Grid Db. |
modify.target |
When TRUE, the results are set as new target variables in the output Db. |
When two facies variables are defined in the Input Db, the proportions are calculated for pairs of facies.
The output Grid Db containing the various proportions.