rbcb_get | R Documentation |
Gets SGS, currency, market expectations and many other datasets from the Brazilian Central Bank open data services.
rbcb_get(x, ...)
## S3 method for class 'sgs'
rbcb_get(x, from = NULL, to = NULL, last = 0, ...)
x |
an object that represents the kind of data to be downloaded |
... |
others arguments |
from |
series initial date. Accepts ISO character formated date and
|
to |
series final date. Accepts ISO character formated date and
|
last |
last items of the series To use the SGS API a 'sgs' object should be passed. |
a dataset with the corresponding data (usually a 'tibble')
## Not run:
x <- sgs(USD = 1, SELIC = 1178)
rbcb_get(x, from = Sys.Date() - 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.