getbcbdata

Repository for dev version of GetBCBData

https://github.com/msperlin/getbcbdata

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Repository for dev version of GetBCBData

Basic Info
  • Host: GitHub
  • Owner: msperlin
  • Language: HTML
  • Default Branch: master
  • Size: 62.5 KB
Statistics
  • Stars: 16
  • Watchers: 4
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE, 
  results = 'hold',
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```


[![R-CMD-check](https://github.com/msperlin/GetBCBData/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/msperlin/GetBCBData/actions/workflows/R-CMD-check.yaml)

  
## Motivation

The Central Bank of Brazil (BCB) offers access to its SGS system (sistema gerenciador de series temporais) with a official API available [here](http://www.bcb.gov.br/?sgs).

Package GetBCBData offers a R interface to the API and many other advantages:

- Use of a caching system with package `memoise` to speed up repeated requests of data;
- User can utilize all cores of the machine (parallel computing) when fetching a large batch of time series;
- Error handling internally. Even if requested series does not exist, the function will still return all results.


## Installation

```{r, eval=FALSE}
# CRAN (official release)  
install.packages('GetBCBData')

# Github (dev version)
devtools::install_github('msperlin/GetBCBData')
```

## A simple example

```{r}
library(GetBCBData)
library(ggplot2)

my.id <- c('Selic' = 432)
df.bcb <- gbcbd_get_series(my.id, cache.path = tempdir())

head(df.bcb)

p <- ggplot(df.bcb, aes(x = ref.date, y = value) ) +
  geom_line() + 
  labs(title = 'SELIC', 
       subtitle = paste0(min(df.bcb$ref.date), ' to ', max(df.bcb$ref.date)),
       x = 'Time', y = 'Percentage*100') + 
  theme_light()
  

print(p)
```

Owner

  • Name: Marcelo S. Perlin
  • Login: msperlin
  • Kind: user
  • Location: Porto Alegre, Brazil
  • Company: UFRGS

Associate Professor and Researcher at UFRGS

GitHub Events

Total
  • Issues event: 10
  • Watch event: 1
  • Issue comment event: 10
  • Push event: 8
Last Year
  • Issues event: 10
  • Watch event: 1
  • Issue comment event: 10
  • Push event: 8

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 17
  • Total Committers: 3
  • Avg Commits per committer: 5.667
  • Development Distribution Score (DDS): 0.412
Top Committers
Name Email Commits
msperlin m****n@g****m 10
msperlin m****n@g****m 6
Winston Chang w****n@s****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 8
  • Total pull requests: 3
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 4 hours
  • Total issue authors: 8
  • Total pull request authors: 2
  • Average comments per issue: 2.75
  • Average comments per pull request: 0.33
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 5
  • Pull requests: 0
  • Average time to close issues: 1 day
  • Average time to close pull requests: N/A
  • Issue authors: 5
  • Pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Majzenberg (1)
  • joaocosta-cnc (1)
  • schoulten (1)
  • helizao (1)
  • andrefpoli (1)
  • jasimioni (1)
  • RachGranville (1)
  • msperlin (1)
Pull Request Authors
  • msperlin (2)
  • wch (1)
Top Labels
Issue Labels
bug (1) enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 659 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: GetBCBData

Imports Datasets from BCB (Central Bank of Brazil) using Its Official API

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 659 Last month
Rankings
Stargazers count: 14.6%
Dependent repos count: 19.3%
Downloads: 20.1%
Average: 20.7%
Forks count: 21.0%
Dependent packages count: 28.8%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.3.0 depends
  • curl * imports
  • dplyr * imports
  • furrr * imports
  • future * imports
  • jsonlite * imports
  • memoise * imports
  • methods * imports
  • purrr * imports
  • stringr * imports
  • utils * imports
  • ggplot2 * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite