cut_season | R Documentation |
Cut date-time vectors into seasons
cut_season(x, labels = NULL)
x |
a date-time vector |
labels |
a list for recoding. Names and order should be "DJF", "MAM", "JJA", "SON" |
factor of seasons
dates <- lubridate::ymd(010101) + months(0:11)
cut_season(dates)
cut_season(dates, c(DJF = "winter", MAM = "spring", JJA = "summer", SON = "autumn"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.