Economic Statistics System of the Bank of Korea

API wrapper to download statistical information from the Economic Statistics System (ECOS) of the Bank of Korea < https://ecos.bok.or.kr/api/#/>.


ecos package

CRAN_Status_Badge R-CMD-check

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 plot using central bank policy rate data.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ecos")

0.1.7 by Seokhoon Joo, a year ago


Browse source code at https://github.com/cran/ecos


Authors: Seokhoon Joo [aut, cre] , Jaehyun Joo [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports httr, jsonlite, XML, stringr


See at CRAN