
Aggregate data by year from SIDRA API
Source:R/get_and_aggregate_sidra_by_year.R
get_and_aggregate_sidra_by_year.Rd
This function downloads data from the Brazilian Institute of Geography and Statistics (IBGE) Automatic Retrieval System (SIDRA) API for a given range of years.
Arguments
- years
A
integerish
vector with the years to download.- api_start
A string with the start of the API URL.
- api_end
A string with the end of the API URL. It's important to note that the year will be pasted after
api_start
and beforeapi_end
.- year_col
A string with the name of the column that contains the year.
Value
A tibble with data from the SIDRA API.