Learn R Programming

rIACI (version 1.0.0)

nday_consec_prec_max: Maximum Precipitation Over Consecutive Days

Description

Calculates maximum precipitation over consecutive n days.

Usage

nday_consec_prec_max(
  daily_prec,
  date_factor,
  ndays,
  center_mean_on_last_day = FALSE
)

Value

Numeric vector. Maximum precipitation amounts.

Arguments

daily_prec

Numeric vector. Daily precipitation data.

date_factor

Factor. Date grouping factor.

ndays

Integer. Number of consecutive days.

center_mean_on_last_day

Logical. Whether to center the mean on the last day.