powered by
Converts an array of dates into a dataframe with date, year, month, doy, wyear, dowy.
The day of water year is computed from the first of the specified water year month.
ch_doys(Date, water_yr = 10)
Returns a dataframe with date information:
in Date format
numeric calendar year
number calendar month
numeric day of year
numeric water year starting on day 1 of selected month
numeric day of water year
an array of R dates, as produced by as.Date()
as.Date()
the month starting the water year, default is 10 (October). If a value of 1 is specified, the 10 will be used.
1
10
Paul Whitfield, Kevin Shook
Converts a date array into a data frame with years, wateryears, and days of year and of water year.
dd <- seq.Date(as.Date("2010-01-01"), as.Date("2018-01-01"),by = 1) output <- ch_doys(dd, water_yr=10) head(output)
Run the code above in your browser using DataLab