Learn R Programming

rIACI (version 1.0.0)

spell_length_max: 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)

Value

Numeric vector. Maximum spell lengths.

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.