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.

24 lines
814 B

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmwr-map.r
\title{Convert an MMWR year+week or year+week+day to a Date object}
mmwr_week_to_date(year, week, day = NULL)
\item{year, week, day}{Year, week and month vectors. All must be the same length
unless \code{day} is \code{NULL}.}
vector of \code{Date} objects
This is a reformat and re-export of a function in the \code{MMWRweek} package.
It provides a snake case version of its counterpart and produces a vector
of \code{Date} objects that corresponds to the input MMWR year+week or year+week+day
vectors. This also adds some parameter checking and cleanup to avoid exceptions.
mwd <- mmwr_week_to_date(2016,10,3)