Calculate epi stats a generalized df input.
Arguments
- df
Dataframe with id, date, new_cases, new_deaths, cumulative_cases, cumulative_deaths, AND population.
Examples
if (FALSE) {
df <- onetable %>%
right_join(get_covid_df(), by = c("iso2code")) %>%
filter(!(country == "China" & source == "WHO"))
calc_add_risk(df)
}