Description Usage Arguments Value Examples
View source: R/generate.columns.from.epiyearweek.R
Function generate.columns.from.epiyearweek
creates new column from original one
written in the format YYYY*WW
1 | generate.columns.from.epiyearweek(df.in, target.col)
|
df.in |
Data frame object |
target.col |
Name or position of column with values of type character in the format %Y'W'%w |
generate.columns.from.date
returns a data frame with the same columns as df.in plus columns
epiweek and epiyear
1 2 | df <- data.frame(list(epiyearweek=c('2009W30', '2009W35', '2009W39', '2009W52')))
df.new <- generate.columns.from.epiyearweek(df, 'epiyearweek')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.