get.series {BETS} | R Documentation |
Get a complete time series from a BETS database
Description
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).
Usage
get.series(code, from = "", to = "", data.frame = FALSE,
frequency = NULL)
Arguments
code |
A character . The unique code that references the time series. This code can be obtained by using the BETSsearch function.
|
from |
A character or a Data object. Starting date of the time series (format YYYY-MM-DD).
|
to |
A character or a Data object. Ending date of the time series (format YYYY-MM-DD).
|
data.frame |
A boolean . True if you want the output to be a data frame. True to ts output.
|
frequency |
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.
|
[Package
BETS version 0.4.9
Index]