Calculate daily cases, daily deaths and daily recoveries from Philippines COVID-19 Data Drop

ph_calculate_cases(df)

Arguments

df

A data.frame of cases data pulled from the Philippines COVID-19 Data Drop.

Value

A tibble with calculated number of cases per day and number of deaths per day and number of recovered per day with structure consistent with CoMo model data structure requirements.

Examples

df <- ph_get_cases()
#> Getting information on Google Drive directory structure of the DoH Data Drop for latest available data up to 2020-06-23.
ph_calculate_cases(df = df)
#> # A tibble: 175 x 4 #> repDate cases deaths recovered #> <date> <dbl> <dbl> <dbl> #> 1 2020-01-01 0 0 0 #> 2 2020-01-02 0 0 0 #> 3 2020-01-03 0 0 0 #> 4 2020-01-04 0 0 0 #> 5 2020-01-05 0 0 0 #> 6 2020-01-06 0 0 0 #> 7 2020-01-07 0 0 0 #> 8 2020-01-08 0 0 0 #> 9 2020-01-09 0 0 0 #> 10 2020-01-10 0 0 0 #> # … with 165 more rows