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 ('week_epidemiar') and year ('year_epidemiar') fields added


EcoGRAPH/epidemiar documentation built on Nov. 13, 2020, 5:31 p.m.