congregateDataDates: Congregation of Data Dates

Description Usage Arguments Details Value Examples

View source: R/mattDataAugmentation.R

Description

This function aligns and congregates data value counts on a weekly basis (taking the maximum if necessary) so that the dates in the data are aligned for all data value types at all locations.

Usage

1

Arguments

df

A data frame for which the data values will be congregated to weekly dates.

Details

WARNING: This function manipulates the data in a way that makes the dates of observations less accurate, but in a way that is beneficial for plotting and understanding the cumulative growth of the data.

Value

Output is a data frame of the same format as the passed-in df, but with congregated dates.

Examples

1
2
3
zika_raw <- importZikaData()
zika_2015 <- filterDiseaseData(zika_raw, last_date = "2015-12-31")
congregateDataDates(zika_2015)

smorsink1/ncov2019 documentation built on March 27, 2020, 7:22 p.m.