spell_length_max: Maximum Length of Consecutive Dry Days

View source: R/rIACI.R

spell_length_maxR Documentation

Maximum Length of Consecutive Dry Days

Description

Calculates the maximum length of consecutive dry days.

Usage

spell_length_max(daily_prec, date_factor, threshold, op, spells_can_span_years)

Arguments

daily_prec

Numeric vector. Daily precipitation data.

date_factor

Factor. Date grouping factor.

threshold

Numeric. Precipitation threshold.

op

Character. Comparison operator.

spells_can_span_years

Logical. Whether spells can span across years.

Value

Numeric vector. Maximum spell lengths.


rIACI documentation built on April 12, 2025, 9:16 a.m.