weekday_sequence | R Documentation |
Function to generate a sequence of weekdays.
weekday_sequence(n = 7, monday = TRUE, factor = TRUE)
n |
Number of days for the sequence to return. |
monday |
Should the sequence start on a Monday? Default is |
factor |
Should the return be an ordered factor? Default is |
Stuart K. Grange
## Not run:
# Generate weekday sequence as ordered factors
weekday_sequence()
# Ordered factors starting on Sunday
weekday_sequence(monday = FALSE)
# As characters
weekday_sequence(factor = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.