waterYear | R Documentation |
Create an ordered factor or numeric values from a vector of dates based on the water year.
waterYear(x, numeric = FALSE)
x |
an object of class "Date" or "POSIXt." Missing values are permitted and result in corresponding missing values in the output. |
numeric |
a logical value that indicates whether the returned values
should be numeric |
An ordered factor or numeric vector corresponding to the water year.
The water year is defined as the period from October 1 to September 30. The water year is designated by the calendar year in which it ends. Thus, the year ending September 30, 1999, is the "1999 water year."
year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.