Coder Social home page Coder Social logo

bcchr's Introduction

bcchr

R-CMD-check

Paquete para el consumo de información del API de Banco Central de Chile. Contiene funciones para el tratamiento y resumen de datos junto a otra funciones para gráficar o transformar la información a objetos ts.

Más información del API en https://si3.bcentral.cl/estadisticas/Principal1/web_services/index.htm.

Installation

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

# install.packages("devtools")
devtools::install_github("jbkunst/bcchr")

Example

Luego de cargar el paquete se debe setear los parámetros de acceso utilizando options.

library(bcchr)

options(
  bcc_api_user = "usuario",
  bcc_api_pass = "contraseña"
)

Luego la funciones acceden a estos valores para hacer los request a la API.

desempleo <- bcch_GetSeries("F049.DES.TAS.INE9.10.M")

desempleo
#> # A tibble: 148 × 3
#>    indexDateString value statusCode
#>    <date>          <dbl> <chr>     
#>  1 2010-03-01       9.23 OK        
#>  2 2010-04-01       8.84 OK        
#>  3 2010-05-01       9.09 OK        
#>  4 2010-06-01       8.66 OK        
#>  5 2010-07-01       8.51 OK        
#>  6 2010-08-01       8.44 OK        
#>  7 2010-09-01       8.12 OK        
#>  8 2010-10-01       7.81 OK        
#>  9 2010-11-01       7.23 OK        
#> 10 2010-12-01       7.21 OK        
#> # … with 138 more rows

autoplot(desempleo)

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.