View source: R/index.spell.mean.R
index.spell.mean | R Documentation |
Computes the mean duration of spells (above/below) a given threshold.
index.spell.mean(
ts,
dates,
threshold = 1,
threshold.type = "abs",
condition = c("GT", "GE", "LT", "LE")
)
ts |
A vector containing the data |
dates |
A character (or |
threshold |
A float number defining the absolute threshold considered. Default to 1 |
threshold.type |
Is the value of |
condition |
Inequality operator to be applied considering the given threshold.
|
The function requires the date information in order to ensure that spells are computed on consecutive records.
A float number with the corresponding percentile.
N. Neykov, S. Herrera, J. Bedia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.