Skip to contents

Calculate epi stats a generalized df input.

Usage

calc_add_risk(df)

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)
}