Classify datetime in terms of meteorological season.
Usage
season(x, type = "numeric")
Arguments
- x
a date-time object of class POSIXct, POSIXlt
- type
the format to be returned for the season. Can be one of "string"
or "numeric" (def. "numeric")
Value
A vector of class character or numeric.
Examples
if (FALSE) {
mdata[, season := season(datetime, type = "string")]
}