Learn R Programming

MMWRweek (version 0.1.3)

MMWRweekday: Day of week according to MMWR

Description

This function returns the weekday of a given date according to MMWR.

Usage

MMWRweekday(date)

Arguments

date

vector which can be coerced to class Date

Value

vector of weekdays as a factor (first level is Sunday)

See Also

MMWRweek

Examples

Run this code
# NOT RUN {
y <- as.Date(paste(1999:2011, "-12-31", sep = ""))
data.frame(date = format(y), MMWRweekday = MMWRweekday(y))
# }

Run the code above in your browser using DataLab