epiweekToDate: Convert Epidemiological Weeks to Calendar Dates

Description Usage Arguments Value Author(s) Examples

View source: R/epiweek.R

Description

This function returns the beginning and end dates for a given epidemiological week. By definition, the first epidemiological week of the year contains at least four days in January.

Usage

1
epiweekToDate(year, weekno, firstday = "Sunday")

Arguments

year

A four digits numerical value for the epidemiological year

weekno

A two digits numerical value for the epidemiological week

firstday

A character string specifying the beginning weekday for each epidemiological week. The default for the firstday methods is "Sunday".

Value

d0

Beginning date for this epidemiological week

d1

End date for this epidemiological week

Author(s)

Xiahong Zhao

Examples

1
2
epiweekToDate(2013,34)
epiweekToDate(2011,40,firstday="Monday")

Example output

$d0
[1] "2013-08-18 UTC"

$d1
[1] "2013-08-24 UTC"

$d0
[1] "2011-10-03 UTC"

$d1
[1] "2011-10-09 UTC"

EpiWeek documentation built on May 30, 2017, 4:57 a.m.