water_year: Get water year from date

Description Usage Arguments Value Examples

Description

Returns water year of date vector for given starting month (default=October).

Usage

1
water_year(x, start_month = 10)

Arguments

x

vector of dates

start_month

month that begins a water year

Value

numeric vector of water years

Examples

1
water_year(c(ymd("2000-09-30","2000-10-01","2000-10-02")))

walkerjeffd/myrwaR documentation built on May 3, 2019, 10:46 p.m.