View source: R/utils_date_time.R
week_factor | R Documentation |
Day of the week as factor/numeric
week_factor(
x,
label = FALSE,
abbr = TRUE,
week_start = getOption("lubridate.week.start", 7)
)
x |
|
numeric/factor
Depending on the value for label
. If x
is provided, the day of the week as a factor. If x
is not provided, an ordered factor with Monday as 1.
Other time:
duration_print()
,
excel_date()
,
month_factor()
,
season_factor()
,
time_aggregates
,
time_difftimes
,
time_elapsed()
,
time_factor()
,
timespan()
week_factor()
week_factor(c('Tu', 'We'))
week_factor(c('Tu', 'We'), label = TRUE)
week_factor(seq(lubridate::floor_date(Sys.time(), "year"), Sys.time(), by = "day"), label = TRUE, abbr = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.