# NOT RUN {
what_day()
what_day(abbr = TRUE)
what_day(as_integer = TRUE)
# Work with vectors (when as characters):
ds <- c("2020-01-01", "2020-02-29", "2020-12-24", "2020-12-31")
what_day(when = ds)
what_day(when = ds, unit = "month", as_integer = TRUE)
what_day(when = ds, unit = "year", as_integer = TRUE)
# }
Run the code above in your browser using DataLab