MMWRweekday {MMWRweek}R Documentation

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)

Author(s)

Sebastian Meyer seb.meyer@fau.de

See Also

MMWRweek

Examples

y <- as.Date(paste(1999:2011, "-12-31", sep = ""))
data.frame(date = format(y), MMWRweekday = MMWRweekday(y))

[Package MMWRweek version 0.1.3 Index]