View source: R/getPrecisionPar.R
| getPrecisionPar | R Documentation |
Function that counts cells (number and proportion) above given values.
getPrecisionPar(rasterstack, checkVals, method = FALSE, nCluster = FALSE)
rasterstack |
SpatRaster of probability surfaces |
checkVals |
vector of numeric 'threshold' values against which to calculate precision |
method |
is FALSE by default. If character vector, appends a column recording 'method' used. |
nCluster |
Depreciated. Formerly the number of parallel clusters; retained for back-compatibility. A non-'FALSE' value now issues a message and proceeds serially. |
Returns a dataframe of precision values at given threshold.
myiso <- rast(isoscape, type="xyz")
myiso_sd <- rast(isoscape_sd, type="xyz")
assignmentModels <- isotopeAssignmentModel(
ID = LETTERS[1:4],
isotopeValue = seq(-120, -25, length.out = 4),
SD_indv = rep(5, 4),
precip_raster = myiso,
precip_SD_raster = myiso_sd
)
getPrecisionPar(assignmentModels, checkVals = c(0.001, 0.005, 0.01))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.