add_geo: Adding the geometry to the downloaded data for drawing maps

Description Usage Arguments Details Value Author(s) Source Examples

View source: R/utils.R

Description

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

Usage

1

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

1
2
3
4
5
6
library(covid19br)
library(dplyr)

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

covid19br documentation built on Oct. 18, 2021, 1:06 a.m.