getSeason | R Documentation |
Get the season name out of a date
getSeason(x, seasonlab = c("Winter", "Spring", "Summer", "Fall"))
x |
a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, or fts object.. |
seasonlab |
Season labels, concatenated strings with 4 seasons, default c("Winter","Spring","Summer","Fall") |
Returns the corresponding season.
x <- as.Date("2019-04-01")
getSeason(x) #"Spring"
x <- as.Date("2019-04-01")
getSeason(x, seasonlab = c("Winter","Frühling","Sommer","Herbst")) #"Frühling"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.