Description Usage Arguments Details Value Examples
View source: R/calc_water_year.R
Calculate the water year given a string of dates
1 | calc_water_year(date.vec)
|
date.vec |
Vector with a string of dates |
Based on the USGS definition, a water year starts on October 1 of the year before, and ends on September 30. For example, water year 2015 started on 2014-10-01 and ended on 2015-09-30. See the USGS definition at https://water.usgs.gov/nwc/explain_data.html.
Vector of the water year in which the given date occurs
1 2 | mydates <- seq(as.POSIXct("2010-01-01"), as.POSIXct("2011-01-01"), by="day")
waterYear <- calc_water_year(date.vec = mydates)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.