Giter Site home page Giter Site logo

bnmr's Introduction

bnmr

Travis build status Codecov test coverage R build status

The goal of bnmr is to provide a set of convenient wrapper functions for the Central Bank of Malaysia’s API.

Installation

To install bnmr, run the following code (requires remotes):

# install.packages("remotes")
remotes::install_github("philip-khor/bnmr")

Example

This is a basic example which shows you how to solve a common problem:

library(bnmr)
get_base_rate()
#> # A tibble: 35 x 6
#>    bank_code bank_name base_rate base_lending_ra~ indicative_eff_~
#>    <chr>     <chr>         <dbl>            <dbl>            <dbl>
#>  1 "AFFINBA~ Affin Ba~      2.7              5.56             3.3 
#>  2 "ALLIANC~ Alliance~      2.57             5.42             3.11
#>  3 "AMBANK"  AmBank         2.6              5.45             3.25
#>  4 "BANGKOK" Bangkok ~      3.22             5.87             4.42
#>  5 "BANKCHI~ Bank of ~      2.55             5.35             3.55
#>  6 "CIMB BA~ CIMB Ban~      2.75             5.6              3.5 
#>  7 "CITIBAN~ Citibank~      2.4              5.55             3.2 
#>  8 ""        Hong Leo~      2.63             5.64             3.5 
#>  9 ""        HSBC Ban~      2.39             5.49             3.5 
#> 10 ""        Industri~      2.52             5.45             3.47
#> # ... with 25 more rows, and 1 more variable: base_financing_rate <dbl>

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.