Learn R Programming

ipeadatar (version 0.2.1)

ipeadata: Data for Requested Series

Description

Returns the data associated with requested Ipeadata series.

Usage

ipeadata(code, language = c("en", "br"), label = TRUE, quiet = FALSE)

Value

A data frame containing the Ipeadata code, date, value, territorial unit name, and territorial code of the requested series.

Arguments

code

A character vector of Ipeadata series codes.

language

A character string specifying the language. Available options are English ("en", default) and Brazilian Portuguese ("br").

label

Logical. If TRUE (default), variable labels are added to the output data frame using sjlabelled::set_label().

quiet

Logical. If FALSE (default), a progress bar is displayed.

References

This package uses the Ipeadata API: https://www.ipeadata.gov.br/

See Also

available_series(), available_territories()

Examples

Run this code
data <- ipeadata(code = "PRECOS12_IPCA12")

Run the code above in your browser using DataLab