Turn timespans into an ordered factor
time_factor.RdTurn timespans into an ordered factor
See also
Other time:
duration_print(),
excel_date(),
month_factor(),
season_factor(),
time_aggregates,
time_difftimes,
time_elapsed(),
timespan(),
week_factor()
Examples
time_factor(c("year", "week"))
#> [1] year week
#> Levels: hour < day < week < month < quarter < season < year