remove_runs: Remove consecutive exceedances from a vector

View source: R/auxil.R

remove_runsR Documentation

Remove consecutive exceedances from a vector

Description

Remove runs, i.e., consecutive exceedances, from a vector of values and associated indices (days); for use in declustering

Usage

remove_runs(y, index, upperTail = TRUE)

Arguments

y

vector of values

index

vector of indices, one per value, that indicate which elements of y are consecutive

upperTail

logical indicating whether values of y are upper (right) tail values (TRUE) or lower (left) tail values. Defaults to FALSE.


climextRemes documentation built on May 29, 2024, 4:39 a.m.