The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

CBRT Data on Turkish Economy

Erol Taymaz

03 November 2024

Package

The package includes functions for finding, and downloading data from the CBRT’s database.

You need a key to download data from the CBRT’s database. To get the key, please registed at the CBRT’s Electronic Data Delivery System (URL: https://evds2.tcmb.gov.tr/index.php?/). Registration is free of charge and takes only a few minutes.

If you create an object called myCBRTKey, you do not need to enter it everytime:

myCBRTKey <- your-key

Structure of the data

All data series (variables) are classified into data groups, and data groups into data categories. There are 44 data categories (including the archieved ones), 496 data groups, and 40,826 data series.

Finding variables

The CBRT data includes more than 40,826 variables (data series). To find variables, use the searchCBRT function:

searchCBRT(c("production", "labor", "labour"))
searchCBRT(c("production", "labor", "labour"), field = "series")
searchCBRT(c("production", "labor", "labour"), tags = TRUE)

The package contains the lists of all data categories, data groups, and data series, as of 03 November 2024. You can update the list by the following commands:

allCBRTCategories <- getAllCategoriesInfo()
allCBRTGroups <- getAllGroupsInfo()
allCBRTSeries <- getAllSeriesInfo()

After identifying the data group or data series, you can get some information about the data by showGroupInfo function:

showGroupInfo("bie_apifon")

If you want to get only names of series in a data group, use the following command:

showSeriesNames("bie_apifon")

Downloading the data

You can download either one or more data series you specified, or all data series in a data group.

To download individual data series, use the getDataSeries function:

mySeries <- getDataSeries("TP.D1TOP")
mySeries <- getDataSeries(c("TP.D1TOP", "TP.D2HAZ", "TP.D4TCMB"))
mySeries <- getDataSeries(c("TP.D1TOP", "TP.D2HAZ", "TP.D4TCMB"), startDate="01-01-2010")

To download all data series in a group, use the getDataGroup function:

myData <- getDataGroup("bie_dbafod")

The freq parameter defines the frequency of the data. If you do not define any frequency, the default frequency will be used.

The aggType paremeter defines the method to be used to aggregate data series from high frequency to low frequency (for example, weekly data to monthly data). If no aggregation method is defined, the default will be used. (For the default values, use the showGroupInfo function.)

For example, if you define monthly frequency for weekly data, and “sum” as the aggregation method, then the monthly totals will be returned. Since a data group includes more than one series, the getDataGroup function does not have any aggType parameter, and it aggregates data series by using their default aggregation method.

The following frequencies are defined (from high frequency to low frequency):

The following aggregation methods are available:

The myData object is in data.table and data.frame classes, and it includes a time variable, and data series. The time variable will be either in date or numeric format depending on its frequency.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.