View source: R/get_waterYearDay.R
get_waterYearDay | R Documentation |
Given a vector of dates, calculates day of water year accounting for leap years.
get_waterYearDay(x, wyMonth = 10L)
x |
A vector of class date. |
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. |
A numeric vector of day of water year
x <- seq(from=as.Date("2010-01-01"),to=as.Date("2016-01-01"),by="1 days")
year_day <- get_waterYearDay(x, 2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.