get_season | R Documentation |
Gets the metereological season of a date or date-time object. Days in December belong to the summer of the next year. For example December 24, 2010 belongs to summer 2011.
get_season(x, with_year = TRUE)
x |
a date-time object of class POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, fts or anything else that can be converted with as.POSIXlt |
with_year |
logical indicating whether or not to include the season's year/ |
a string with the season or the year and the season
x <- lubridate::ymd("2010-01-15") + seq(0, 365*2, length.out = 25)
get_season(x, with_year = TRUE)
get_season(x, with_year = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.