cbrt_get | R Documentation |
Get the series from CBRT
cbrt_get(
series,
start_date,
end_date,
formulas = NULL,
token = NULL,
nd = TRUE,
as = c("tibble", "tsibble", "data.frame", "data.table")
)
series |
Series Code
|
start_date |
Start date
|
end_date |
End date
|
formulas |
Formulas applied to series
Available formulas are; 0: Level 1: Percentage change 2: Difference 3: Year-to-year Percent Change 4: Year-to-year Differences 5: Percentage Change Compared to End-of-Previous Year 6: Difference Compared to End-of-Previous Year 7: Moving Average 8: Moving Sum If more than one series is selected, it takes up parameters as the number of series, the serial codes are separated by a "-" sign. If this parameter is not entered by the user, the level formula parameter is applied for the relevant series. |
token |
API key
|
nd |
Convert ND values to NA
|
as |
Type of data to return Argument |
A data frame (tibble, tsibble, data.frame, or data.table)
# Download the given series for the given dates
## Not run: cbrt_get(series = "TP.DK.USD.A",
start_date = "01-01-2017",
end_date = "01-01-2018",
token = APIkey)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.