add_geo {covid19br}R Documentation

Adding the geometry to the downloaded data for drawing maps

Description

This function adds the necessary geometry for drawing maps to a given data set downloaded by the covid19br::downloadCovid19() function.

Usage

add_geo(data, ...)

Arguments

data

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

...

further arguments passed to other methods.

Details

The function add_geo() was designed to work with the original names of the variables available in the dataset downloaded by the covid19br::downloadCovid19(). For this reason, this function must be used before any changes in the original names of the variables.

The development human index (DHI) variables (see full description below) are available at city level, and their average are computed for state and region levels.

Data dictionary (Brazilian data):

Data dictionary (world data):

Value

the data set with the added georeferenced data.

Author(s)

Fabio N. Demarqui fndemarqui@est.ufmg.br

Source

Examples


library(covid19br)
library(dplyr)

regions <- downloadCovid19(level = "regions")
regions_geo <- add_geo(regions)
glimpse(regions_geo)



[Package covid19br version 0.1.8 Index]