Get Data from the 'KOF Datenservice' API

Read Swiss time series data from the 'KOF Datenservice' API, < https://datenservice.kof.ethz.ch>. The API provides macro economic time series data mostly about Switzerland. The package itself is a set of wrappers around the 'KOF Datenservice' API. The 'kofdata' package is able to consume public information as well as data that requires an API token.


Read Swiss time series data from the KOF Datenservice API. The API provides macroeconomic survey data, business cycle and further macro economic time series about Switzerland. The package itself is a set of wrappers around API. The kofdata package is able to consume public information as well as data that needs an API token.

For further information on the data, the API and the KOF Swiss Economic Institute please consult the corresponding links.

Getting Started - Installation

Official CRAN Version

Fire up R and run install.packages or use the GUI, if you got one.

install.packages("kofdata")

Developer Version from github

The easiest way to install the very latest version that might not have completed all checks (but contains the latest, hottest, most awesome, most exploratory, adventurous features) is to run:

devtools::install_github("KOF-ch/kofdata")

Note to those of you who do not use R regularly: in order to install directly from github make sure the devtools package is installed.

Example Usage

News

2018-01-31: Fixed bug in translation of legacy keys. 2017-11-16: Fixed bug in get_dataset that prevented correct use of apikey. 2017-11-16: Made get_dataset and get_time_series work when series of length 0 are returned.

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("kofdata")

0.1.5 by Matthias Bannert, a month ago


https://github.com/KOF-ch/kofdata


Report a bug at https://github.com/KOF-ch/kofdata/issues


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


Authors: Matthias Bannert [aut, cre] , Severin Thoeni [aut]


Documentation:   PDF Manual  


GPL-2 license


Imports xts, zoo

Depends on jsonlite, httr

Suggests testthat


See at CRAN