Learn R Programming

MMWRweek

This package provides functionality to convert between Dates and Morbidity and Mortality Weekly Report (MMWR) weeks (day, week, and year).

The first day of any MMWR week is Sunday. MMWR week numbering is sequential beginning with 1 and incrementing with each week to a maximum of 52 or 53. MMWR week #1 of an MMWR year is the first week of the year that has at least four days in the calendar year. This package provides functionality to convert Dates to MMWR day, week, and year and the reverse.

library(MMWRweek)
MMWRweek('2015-11-24')
#>   MMWRyear MMWRweek MMWRday
#> 1     2015       47       3

Copy Link

Version

Install

install.packages('MMWRweek')

Monthly Downloads

1,143

Version

0.1.3

License

GPL (>= 2) | file LICENSE

Maintainer

Jarad Niemi

Last Published

April 22nd, 2020

Functions in MMWRweek (0.1.3)

start_date

Find start date for a calendar year
MMWRweek2Date

Convert MMWRweek to Date
MMWRweek

MMWR day, week, and year
MMWRweekday

Day of week according to MMWR
get_start_date

Finds the start date for the year associated with date.