Learn R Programming

ecos package

Introduction

한국은행 경제통계시스템
Economic Statistics System of Bank of Korea (Open API Service)
(https://ecos.bok.or.kr/api/#/)

Installation

# install from CRAN
install.packages("ecos")

# Alternatively
devtools::install_github("seokhoonj/ecos")  

Examples

library(ecos)

# set your api key
ecos.setKey(api_key = "your_api_key")

# or permanently
usethis::edit_r_environ() # add KOSIS_API_KEY="your_api_key" in .Renviron

# data search (if you don't know the stat_code / item_code)
interest_rate <- statSearch()
Please insert stat_code: 902Y006
Please insert item_code1: US

# or simply
interest_rate <- statSearch(stat_code = "902Y006", item_code1 = "US", cycle = "M")

An example of plot using central bank policy rate data (US) from ECOS

Copy Link

Version

Install

install.packages('ecos')

Monthly Downloads

252

Version

0.1.6

License

MIT + file LICENSE

Maintainer

Last Published

February 8th, 2024

Functions in ecos (0.1.6)

orderStatSearchColumns

orderStatSearchColumns Function
keyStatList

Top 100 statistical indicators
ecos-package

ecos: Economic Statistics System of the Bank of Korea
ecos.setKey

Set ECOS API Key
statTableList

Table list of statistical tables
statSearch

Search conditional statistics
statItemList

Item list of statistics
statMeta

Retrieve statistical meta DB
statWord

Glossary of Statistical Terms
getCalendarTime

getCalendarTime Function
drawLine

drawLine Function
showStatItemList

showStatItemList Function
setCalendar

setCalendar Function
calendar

Calendar for the cycle argument
showStatTableList

showStatTableList Function