Calculates maximum precipitation over consecutive n days.
nday_consec_prec_max(
daily_prec,
date_factor,
ndays,
center_mean_on_last_day = FALSE
)
Numeric vector. Maximum precipitation amounts.
Numeric vector. Daily precipitation data.
Factor. Date grouping factor.
Integer. Number of consecutive days.
Logical. Whether to center the mean on the last day.