R/wygen.R
wygen.RdGenerate Water Year(WY) tags based on a POSIX date and specified last month of the WY.
wygen(dates, last_month = 4)
| dates | character date that passes coercion to POSIX formatting |
|---|---|
| last_month | numeric last month of water year |
dates <- "2014-01-01" dates <- "2015-09-14" wygen(dates) #> $wy #> [1] 2016 #> #> $wy_month #> [1] 5 #>