wyear: Get water year component of a date-time.

Description Usage Arguments Value Examples

View source: R/wyear.R

Description

Get water year component of a date-time.

Usage

1
wyear(x, start_month = 10)

Arguments

x

a date-time object

start_month

starting month of the water year

Value

the water year elements of x as a number

Examples

1
wyear(lubridate::ymd('2000-09-30') + lubridate::days(c(0,1,2)), start_month=10)

walkerjeffd/fluxr documentation built on Sept. 16, 2021, 1:29 a.m.