water_year: Water year

Description Usage Arguments Examples

View source: R/water_year.R

Description

Get water year from date-time object. Warning: uses the system-specific time zone and not the time zone associated with the date-time object.

Usage

1

Arguments

x

A date-time object.

Examples

1
2
3
x <- c("2016-12-31", "2017-01-01", "2017-09-30", "2017-10-01")
water_year(as.Date(x))
water_year(as.Date(x)) == format(as.Date(x), "%Y")

fishsciences/cfs.misc documentation built on Jan. 29, 2021, 3:19 a.m.