Description Usage Arguments Details Value Author(s) Examples
find_flood_drough
detect events of floods and droughts based on the
definition proposed by Mckee et al. (1993) using a time series of standardized
precipitation values. A drought (flood) is defined as a period of time in
which the SPI is continuously negative (positive) reaching at least
one value lower (higher) or equal to -1 (1).
1 2 | find_flood_drought(spi, threshold = qnorm(1 - 0.05/2),
labels = c("normal", "drought", "flood"))
|
spi |
A vector representing the time series of the standardized values. |
threshold |
An numeric value used to detect the extreme events, 1 (-1) is used by default as proposed by Mckee et al. (1993). |
labels |
A character vector providing the labels used to return the three
types of events |
Although the definition of Mckee et al. (1993) uses a threshold of 1 (-1). Other values can be used for this threshold.
A factor vector indicating the time of event the standardized precipitation value corresponds.
Erick A. Chacon-Montalvan
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.