powered by
Display water year
ch_wtr_yr(dates, start_month = 10)
Year starting in start_month
A vector of dates with actual year
Month in which the year starts (defaults to October)
date <- seq(as.Date("1910/1/1"), as.Date("1912/1/1"), "days") wtr_yr_date <- ch_wtr_yr(dates=date, start_month=10) df <- data.frame(wtr_yr_date, date)
Run the code above in your browser using DataLab