R/WY.R
WY.Rd
Determines Water Year from a date field
WY(date, WY.type = "FL")
Date in as.POSIXct or as.Date format
Specifies Federal ("Fed") or Florida ("FL") water years
Returns water year value based on Federal (Starts Oct 1) or Florida (Starts May 1),
dates=as.Date(c("2015-05-01","2015-08-20","2015-12-15")) WY(dates) #> [1] 2016 2016 2016