get_series {aebdata} | R Documentation |
The function get_series()
is the main function of this package. Its goal
is to facilitate direct access to the data published in the Atlas do Estado
Brasileiro so that the user can work with them as they wish.
get_series(series_id = NULL, series_title = NULL)
series_id , series_title |
The series ids or titles to download |
If the parameter used is for just one series, the result will be a data.frame containing the requested information. Now, if the parameter refers to more than one series, the return will be a list of data.frames, with each data.frame corresponding to a series.
A data.frame or a list containing the data from the series
# Get the series 230 and print the head
serie_230 <- get_series(series_id = 230)
head(serie_230)
# Get the series from 230 to 232 and print the head of the 232
series <- get_series(series_id = 230:232)
head(series[["232"]])