fetch_data: Fetches data from the BDDK API

View source: R/fetch_data.R

fetch_dataR Documentation

Fetches data from the BDDK API

Description

Fetches data from the BDDK API

Usage

fetch_data(
  start_year,
  start_month,
  end_year,
  end_month,
  table_no,
  currency,
  group,
  lang = "tr",
  save_excel = FALSE,
  verbose = TRUE
)

Arguments

start_year

integer: Starting year (YYYY format)

start_month

integer: Starting month (1-12)

end_year

integer: Ending year (YYYY format)

end_month

integer: Ending month (1-12)

table_no

integer: Table number (e.g., 1)

currency

character: Currency type (e.g., "TL", "USD")

group

integer: Group type (e.g., 10001)

lang

character: Language selection, default 'tr'

save_excel

logical: If TRUE, saves data to Excel. Default is FALSE.

verbose

logical: If TRUE, print a message. Default is TRUE.

Value

data.frame: Returns data as a data.frame. Returns NULL if no data is available.


bddkR documentation built on Sept. 14, 2025, 5:09 p.m.

Related to fetch_data in bddkR...