wyear: Get water year component of a date-time

Description Usage Arguments Examples

Description

Get water year component of a date-time

Usage

1
wyear(x, start_month = 10)

Arguments

x

a vector of date-times

start_month

initial month of the water year (default is 10 for October)

Examples

1
2
wyear(lubridate::ymd("2000-10-01"), start_month=10)
wyear(lubridate::ymd(c("2000-01-01", "2000-09-30", "2000-10-01", "2000-12-31")), start_month=10)

HydrosystemsGroup/Weather-Generator documentation built on May 8, 2019, 8:34 a.m.