add_epi_rates: Adding incidence, mortality and lethality rates to the...

View source: R/utils.R

add_epi_ratesR Documentation

Adding incidence, mortality and lethality rates to the downloaded data

Description

This function adds the incidence, mortality and lethality rates to a given data set downloaded by the covid19br::downloadCovid19() function.

Usage

add_epi_rates(data, ...)

Arguments

data

a data set downloaded using the covid19br::downloadCovid19() function.

...

further arguments passed to other methods.

Details

The function add_epi_rates() was designed to work with the original names of the variables accumDeaths, accummCases and pop available in the data set downloaded by the covid19br::downloadCovid19(). For this reason, this function must be used before any change in such variable names.

Value

the data set with the added incidence, mortality and lethality rates.

Author(s)

Fabio N. Demarqui fndemarqui@est.ufmg.br

Examples


library(covid19br)
library(dplyr)

brazil <- downloadCovid19(level = "brazil")
brazil <- add_epi_rates(brazil)
glimpse(brazil)



covid19br documentation built on Oct. 16, 2023, 1:06 a.m.