Get the series from CBRT
Usage
cbrt_get(
series,
start_date,
end_date,
formulas = NULL,
token = NULL,
nd = TRUE,
as = c("tibble", "tsibble", "data.frame", "data.table")
)Arguments
- series
Series Code
seriesargument can be obtained from CBRT webpage. Search CBRT webpage in order to find out the series code and use it in theseriesargument. The serial codes are displayed. If more than one series is selected, it takes up parameters as the number of series, the serial codes are separated by a "-" sign.- start_date
Start date
start_dateargument is the series start date as dd-mm-yyyy format. In order to display the frequency of the desired series, the first day of the corresponding frequency must be stated in the start date as dd-mm-yyyy format.- end_date
End date
end_dateargument is the series end date as dd-mm-yyyy format.- formulas
Formulas applied to series
formulasargument is the formula 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
tokenargument is the required API key. See https://evds2.tcmb.gov.tr/help/videos/EVDS_Web_Service_Usage_Guide.pdf for instructions to obtain the API key.- nd
Convert ND values to NA
ndargument is a TRUE or FALSE argument. Data retrieved sometimes includes ND terms. Ifndis set to TRUE, all NDs are converted to NAs.- as
Type of data to return
Argument
ascan be set to eithertibble,tsibble,data.frame, ordata.tableto obtain different types of data classes.tibbleis the default output class.