# See the type specific documentation for more examples
x <- as.Date("2019-01-01") + 0:1
# A Tuesday and Wednesday
as_weekday(x)
monday <- weekday(clock_weekdays$monday)
# Shift to the next Monday
date_shift(x, monday)
Run the code above in your browser using DataLab