episem2date: Function to obtain first day of corresponding Brazilian...

Description Usage Arguments Value Examples

View source: R/episem2date.R

Description

Function episem2date uses the Brazilian definition of epidemiological week and returns the date of the corresponding o the provided epi. week, using week day requested. Uses Sunday as default, the first week day by Brazilian epi. week definition.

Usage

1
episem2date(epiyearweek, weekday = 0)

Arguments

epiyearweek

Epidemiological week in the format " by the Brazilian epidemiological week system. The separator between Y and W is irrelevant. Ex.: 2014W02

weekday

Week day to be used as representative of the epi. week. Uses Date week day classification. 0: Sunday, 6:Saturday. Default: 0

Value

Date corresponding to the Sunday of epiyearweek

Examples

1
2
epiyearweek <- '2014W02'
episem2date(epiyearweek)

Opportunity-Estimator-EpiSurveillance/leos.opportunity.estimator documentation built on Jan. 23, 2021, 6:49 p.m.