R/02-ph_calculate_cases.R
ph_calculate_cases.Rd
Calculate daily cases, daily deaths and daily recoveries from Philippines COVID-19 Data Drop
ph_calculate_cases(df)
df | A data.frame of cases data pulled from the Philippines COVID-19 Data Drop. |
---|
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.
#>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