You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
821 B

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmwr-map.r
\title{Convert a Date to an MMWR weekday}
mmwr_weekday(x, abbr = FALSE)
\item{x}{a vector of \code{Date} objects or a character vector in \code{YYYY-mm-dd} format.}
\item{abbr}{(logical) if \code{TRUE}, return abbreviated weekday names, otherwise full
weekday names (see Note).}
ordered factor
This is a reformat and re-export of a function in the \code{MMWRweek} package.
It provides a snake case version of its counterpart, produces a \code{factor} of
weekday names (Sunday-Saturday).
Weekday names are explicitly mapped to "Sunday-Saturday" or "Sun-Sat" and
do not change with your locale.