season_factor: Season as factor/numeric

View source: R/utils_date_time.R

season_factorR Documentation

Season as factor/numeric

Description

Season as factor/numeric

Usage

season_factor(x, label = FALSE, abbr = TRUE)

Arguments

x

chr/Date/POSIXt Names of seasons as case insensitive character vector, if using abbreviations, they must be of consistent length. Otherwise, a Date or POSIXt.

Value

factor If x is provided, the season as a factor. If x is not provided, an ordered factor of the seasons.

See Also

Other time: duration_print(), excel_date(), month_factor(), time_aggregates, time_difftimes, time_elapsed(), time_factor(), timespan(), week_factor()

Examples

season_factor()
season_factor(c('Sp', 'Su'))
season_factor(c('Sp', 'Su'), label = TRUE)
season_factor(seq(lubridate::floor_date(Sys.time(), "year"), Sys.time(), by = "day"), label = TRUE, abbr = FALSE)

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.