Giter VIP home page Giter VIP logo

ecbr's Introduction

ecbr

Lifecycle: superseded R-CMD-check

Note this package is retired in favor of the bbk package, which provides additional central bank data sources.

ecbr is a minimal R client for the ECB API.

Installation

You can install the development version of ecbr from GitHub with:

# install.packages("pak")
pak::pak("m-muecke/ecbr")

Usage

library(ecbr)

# fetch US dollar/Euro exchange rate
fx_rate <- ecb_data("EXR", "D.USD.EUR.SP00.A", start_period = "2021-01-01")
fx_rate
#> # A tibble: 898 × 16
#>   date       key           value title description freq  currency currency_denom
#>   <date>     <chr>         <dbl> <chr> <chr>       <chr> <chr>    <chr>         
#> 1 2021-01-04 D.USD.EUR.SP…  1.23 US d… ECB refere… daily USD      EUR           
#> 2 2021-01-05 D.USD.EUR.SP…  1.23 US d… ECB refere… daily USD      EUR           
#> 3 2021-01-06 D.USD.EUR.SP…  1.23 US d… ECB refere… daily USD      EUR           
#> 4 2021-01-07 D.USD.EUR.SP…  1.23 US d… ECB refere… daily USD      EUR           
#> 5 2021-01-08 D.USD.EUR.SP…  1.23 US d… ECB refere… daily USD      EUR           
#> # ℹ 893 more rows
#> # ℹ 8 more variables: exr_type <chr>, exr_suffix <chr>, decimals <chr>,
#> #   source_agency <chr>, time_format <chr>, collection <chr>, unit_mult <chr>,
#> #   unit <chr>

Related work

  • ecb: R interface to the European Central Bank’s Statistical Data Warehouse (SDW) API.
  • rsdmx: R package for reading SDMX data and metadata.
  • readsdmx: R package for reading SDMX data and metadata.
  • pdfetch: R package for downloading economic and financial time series from public sources.

ecbr's People

Contributors

dependabot[bot] avatar m-muecke avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ecbr's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.