This is a reformat and re-export of a function in the MMWRweek
package.
It provides a snake case version of its counterpart, produces a factor
of
weekday names (Sunday-Saturday).
mmwr_weekday(x, abbr = FALSE)
a vector of Date
objects or a character vector in YYYY-mm-dd
format.
(logical) if TRUE
, return abbreviated weekday names, otherwise full
weekday names (see Note).
ordered factor
# NOT RUN {
mmwr_weekday(Sys.Date())
# }
Run the code above in your browser using DataLab