generate.columns.from.epiyearweek: Generate new columns epiweek and epiyear from epiyearweek

Description Usage Arguments Value Examples

Description

Function generate.columns.from.epiyearweek creates new column from original one written in the format YYYY*WW

Usage

1

Arguments

df.in

Data frame object

target.col

Name or position of column with values of type character in the format %Y'W'%w

Value

generate.columns.from.date returns a data frame with the same columns as df.in plus columns epiweek and epiyear

Examples

1
2
df <- data.frame(list(epiyearweek=c('2009W30', '2009W35', '2009W39', '2009W52')))
df.new <- generate.columns.from.epiyearweek(df, 'epiyearweek')

Opportunity-Estimator-EpiSurveillance/leos.opportunity.estimator documentation built on May 7, 2019, 9:24 p.m.