load_pibmunic {datazoom.amazonia}R Documentation

PIB MUNICIPAL - Municipal GDP

Description

Loads information on gross domestic product at current prices, taxes, net of subsidies, on products at current prices and gross value added at current prices, total and by economic activity, and respective shares. Survey is done at Country, state and municipality level and data is available from 2002 to 2019.

Usage

load_pibmunic(
  dataset = "pibmunic",
  raw_data,
  geo_level,
  time_period,
  language = "eng",
  legal_amazon_only = FALSE
)

Arguments

dataset

A dataset name ("pibmunic") with Municipal GDP information. You can also use SIDRA codes (See https://sidra.ibge.gov.br/pesquisa/pib-munic/tabelas)

raw_data

A boolean setting the return of raw (TRUE) or processed (FALSE) data.

geo_level

A string that defines the geographic level of the data. Can be one of "country", "state" or "municipality".

time_period

A numeric indicating what years will the data be loaded in the format YYYY. Can be a sequence of numbers such as 2010:2012.

language

A string that indicates in which language the data will be returned. Currently, only Portuguese ("pt") and English ("eng") are supported. Defaults to "eng".

legal_amazon_only

A boolean setting the return of Legal Amazon Data (TRUE) or Country's Data (FALSE).

Value

A tibble with the selected data.

Examples

## Not run: 
# download state raw data from 2012 for all country
pibmunic <- load_pibmunic(
  dataset = "pibmunic",
  raw_data = TRUE,
  geo_level = "state",
  time_period = 2012,
  legal_amazon_only = FALSE
)

## End(Not run)

[Package datazoom.amazonia version 0.3.0 Index]