https://github.com/jbkunst/bcchr
Paquete R para consumir informacion del API del Banco Central de Chile
https://github.com/jbkunst/bcchr
api centralbank chile financial r rstats
Last synced: 2 months ago
JSON representation
Paquete R para consumir informacion del API del Banco Central de Chile
- Host: GitHub
- URL: https://github.com/jbkunst/bcchr
- Owner: jbkunst
- License: other
- Created: 2022-08-28T05:34:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-23T00:35:33.000Z (over 2 years ago)
- Last Synced: 2025-02-14T14:43:00.605Z (4 months ago)
- Topics: api, centralbank, chile, financial, r, rstats
- Language: R
- Homepage: https://jkunst.com/bcchr/
- Size: 2.04 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# bcchr
[](https://github.com/jbkunst/bcchr/actions/workflows/R-CMD-check.yaml)
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](https://github.com/) with:
```r
# install.packages("devtools")
devtools::install_github("jbkunst/bcchr")
```## Example
```{r, include=FALSE}
library(bcchr)options(
bcc_api_user = 178956728,
bcc_api_pass = "cxynr4qyLLBw"
)
```Luego de cargar el paquete se debe setear los parámetros de acceso utilizando
`options`.```{r, eval=FALSE}
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.
```{r}
desempleo <- bcch_GetSeries("F049.DES.TAS.INE9.10.M")desempleo
autoplot(desempleo)
```