x <- weekday(1:7)
# Default to Sunday -> Saturday
weekday_factor(x)
# ISO encoding is Monday -> Sunday
weekday_factor(x, encoding = "iso")
# With full names
weekday_factor(x, abbreviate = FALSE)
# Or a different language
weekday_factor(x, labels = "fr")
Run the code above in your browser using DataLab