Extracts a complete time series from either the Central Bank of Brazil (BCB), the Brazilian Institute of Geography and Statistics (IBGE) or the Brazilian Institute of Economics (FGV/IBRE).
get.series(code, from = "", to = "", data.frame = FALSE,
frequency = NULL)
A character
. The unique code that references the time series. This code can be obtained by using the BETSsearch
function.
A character
or a Data
object. Starting date of the time series (format YYYY-MM-DD).
A character
or a Data
object. Ending date of the time series (format YYYY-MM-DD).
A boolean
. True if you want the output to be a data frame. True to ts
output.
An integer
. The frequency of the time series. It is not needed. It is going to be used only if the metadata for the series is corrupted.