Skip to contents

Calculates the cumulative precipitation over the days_before to days_after the closest approach.

Usage

calc_anderson_prcp(daily_avgs, closest_dist, days_before = 1, days_after = 2)

Arguments

daily_avgs

Output from calc_daily_avgs()

closest_dist

Output from calc_closest_dist()

days_before

Number of days before closest distance (default 1)

days_after

Number of days after closest distance (default 2)

Value

Cumulative precipitation for each geography

Examples

if (FALSE) { # \dontrun{
harvey_anderson_prcp <- calc_anderson_prcp(
  harvey_daily_avgs,
  harvey_closest_dist
)
} # }