averageSpellLength: Calculate length of a wet or a dry spell

averageSpellLengthR Documentation

Calculate length of a wet or a dry spell

Description

Calculate length of a wet or a dry spell

Usage

averageSpellLength(x, threshold = 0, below = TRUE)

Arguments

x

numeric vector of values

threshold

numeric threshold to define the wet or a dry spell

below

binary variable. TRUE considers values less than or equal, FALSE above the threshold.


Deltares/weathergenr documentation built on July 25, 2024, 6:15 p.m.