Description Usage Arguments Value Examples
A water year is a 12-month period beginning in some month other than January. The water year is designated by the calendar year in which it ends (e.g. water year 2007 ends on 2007-09-30 if the starting month is October)
1 | water_year(x, start_month = 10)
|
x |
vector of datetime objects |
start_month |
integer specifying first month of water year (default = 10 for October) |
vector of water years as decimal numbers
1 2 | x <- seq.Date(from = as.Date("2007-09-30"), to = as.Date("2007-10-02"), by = "day"))
water_year(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.