Learn R Programming

covid19br

The goal of the package is to provide a function to automatically import the Brazilian COVID-19 pandemic data into R. Brazilian data is available on country, region, state, and city levels, and are downloaded from the official Brazilian repository at <https://covid.saude.gov.br/>. The package also enables one to download the world-level COVID-19 data from the Johns Hopkins University’s repository at <https://github.com/CSSEGISandData/COVID-19>.

Installation

You can install the released version of covid19br from CRAN with:

install.packages("covid19br")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("fndemarqui/covid19br")

Example

Downloading COVID-19 pandemic data:

library(covid19br)
library(tidyverse)

brazil <- downloadCovid19("brazil")
regions <- downloadCovid19("regions")
states <- downloadCovid19("states")
cities <- downloadCovid19("cities")
world <- downloadCovid19("world")

Copy Link

Version

Install

install.packages('covid19br')

Monthly Downloads

336

Version

1.0.0.1

License

MIT + file LICENSE

Maintainer

Fabio Demarqui

Last Published

November 10th, 2025

Functions in covid19br (1.0.0.1)

election2018Cities

Results of the 2018 presidential election in Brazil by city.
add_epi_rates

Adding incidence, mortality and lethality rates to the downloaded data
add_geo

Adding the geometry to the downloaded data for drawing maps
covid19br

Brazilian COVID-19 Pandemic Data.
downloadCovid19

Function to download COVID-19 data from web repositories
geoworld

World-level georeferenced data
georegions

Region-level georeferenced data
election2018States

Results of the 2018 presidential election in Brazil by state.
geostates

State-level georeferenced data
geocities

City-level georeferenced data
election2018Regions

Results of the 2018 presidential election in Brazil by region.