Learn R Programming

datazoom.amazonia (version 1.1.0)

load_ips: IPS - Amazon Social Progress Index

Description

Loads information on the social and environmental performance of the Legal Amazon.

Usage

load_ips(
  dataset = "all",
  raw_data = FALSE,
  time_period = c(2014, 2018, 2021, 2023),
  language = "eng"
)

Value

A tibble.

Arguments

dataset

A dataset name ("all", "life_quality", "sanit_habit", "violence", "educ", "communic", "mortality", or "deforest")

raw_data

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

time_period

Year to download. Can be 2014, 2018, 2021, 2023, or a vector with some combination thereof

language

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

Examples

Run this code
if (FALSE) {
# Download raw data from 2014
data <- load_ips(dataset = "all", raw_data = TRUE, time_period = 2014)

# Download treated deforest data from 2018 in portuguese
data <- load_ips(
  dataset = "deforest", raw_data = FALSE,
  time_period = 2018, language = "pt"
)
}

Run the code above in your browser using DataLab