Learn R Programming

winfapReader (version 0.1-3)

water_year: Derive water year value for a date

Description

Derive water year value for a date

Usage

water_year(date, start_month = 10)

Value

The water year value

Arguments

date

the (vector of) dates for which the water year will be calculated

start_month

the month in which the water year starts, default is October

Examples

Run this code
water_year(as.Date(c("2010-11-03", "2013-02-03")))

Run the code above in your browser using DataLab