Description Usage Arguments Examples
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.
1 | water_year(x)
|
x |
A date-time object. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.