This function provides the extraction of data using IPADATA's API http://www.ipeadata.gov.br/api/.

get_ipea(code)

Arguments

code

Character vector with series code.

Value

A tibble with data from IPEADATA

Details

See the codes_ipea() to available series codes and other information.

Examples

get_ipea(c("CAGED12_SALDON12", "CAGED12_DESLIGN12"))
#> # A tibble: 30 x 3 #> date value code #> <date> <dbl> <fct> #> 1 2020-01-01 66818 CAGED12_SALDON12 #> 2 2020-02-01 188869 CAGED12_SALDON12 #> 3 2020-03-01 -207401 CAGED12_SALDON12 #> 4 2020-04-01 -860503 CAGED12_SALDON12 #> 5 2020-05-01 -331901 CAGED12_SALDON12 #> 6 2020-06-01 -10984 CAGED12_SALDON12 #> 7 2020-07-01 131010 CAGED12_SALDON12 #> 8 2020-08-01 249388 CAGED12_SALDON12 #> 9 2020-09-01 313564 CAGED12_SALDON12 #> 10 2020-10-01 394989 CAGED12_SALDON12 #> # ... with 20 more rows