AnoAgree | R Documentation |
This function computes the mean and the percentage of agreement between anomalies.
AnoAgree(ano, membersdim, na.rm = TRUE, ncores = NULL)
ano |
A multidimensional array. |
membersdim |
The dimension in which models are stored. |
na.rm |
A logical indicating whether missing values should be removed. If |
ncores |
The number of cores to be used when computing the agreement. |
An array of one dimension less than the ano
object, except for one dimensional arrays or vectors, for which an array of dimension 1 called 'var' is returned.
# Example with random sample:
a <- NULL
for(i in 1:20) { a <- c(a, rnorm(6)) }
dim(a) <- c(lat = 2, lon = 3, var = 4, mod = 5)
agree <- AnoAgree(ano = a, membersdim = which(names(dim(a)) == 'mod'), na.rm = TRUE, ncores = NULL)
print(agree)
a <- rnorm(6)
agree <- AnoAgree(ano = a, membersdim = 1, na.rm = TRUE, ncores = NULL)
print(agree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.