add_datefields: Adds ISO or CDC datefields to a data set with a "obs_date"...

Description Usage Arguments Value

View source: R/add_datefields.R

Description

Adds ISO or CDC datefields to a data set with a "obs_date" (Date) field

Usage

1

Arguments

df

Data table or tibble with a field named "obs_date"

type

String to indicate whether to use "ISO" ISO-8601 week of year (used by WHO) or "CDC" epi weeks.

Value

dataframe (or tibble) with week and year fields added


EcoGRAPH/epidemiar documentation built on Aug. 22, 2019, 6:53 a.m.