Remove runs, i.e., consecutive exceedances, from a vector of values and associated indices (days); for use in declustering
remove_runs(y, index, upperTail = TRUE)
vector of values
vector of indices, one per value, that indicate which elements of y
are consecutive
logical indicating whether values of y
are upper (right) tail values (TRUE) or lower (left) tail values. Defaults to FALSE
.