Description Usage Arguments Details Value Examples
View source: R/mattDataAugmentation.R
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.
1 |
df |
A data frame for which the data values will be congregated to weekly dates. |
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.
Output is a data frame of the same format as the passed-in df, but with congregated dates.
1 2 3 | zika_raw <- importZikaData()
zika_2015 <- filterDiseaseData(zika_raw, last_date = "2015-12-31")
congregateDataDates(zika_2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.