View source: R/get_waterYear.R
get_waterYear | R Documentation |
Function to return the water year for a given date
get_waterYear(x, wyMonth = 10L, numeric = TRUE)
x |
A date vector |
wyMonth |
A numeric. The month of the year in which the water year starts (1=January, 12=December). The water year begins on the first day of wyMonth. |
numeric |
Logical. Return values are numeric vector or vector of ordered factors |
A vector of numeric water years for each date if numeric = TRUE
otherwise an ordered factor of water years if numeric = FALSE
get_waterYear(sampleData$date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.