x <- as.Date("2019-01-01") + 0:6
# Default to Sunday -> Saturday
date_weekday_factor(x)
# ISO encoding is Monday -> Sunday
date_weekday_factor(x, encoding = "iso")
# With full names
date_weekday_factor(x, abbreviate = FALSE)
# Or a different language
date_weekday_factor(x, labels = "fr")
Run the code above in your browser using DataLab