GithubHelp home page GithubHelp logo

dkgaraujo / brazilianbanks Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 138.39 MB

Retrieving data on Brazilian banks and other regulated financial institutions with R

License: Apache License 2.0

R 100.00%
banks central-banking r r-package statistics

brazilianbanks's People

Contributors

dkgaraujo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brazilianbanks's Issues

Income statement data need adjustment to become quarterly information

Banco Central do Brasil's IF.Data originally presents bank income statement accounts cumulatively in each semester: the values for the second and fourth quarters also contain the income and expenses of the first and third quarters, respectively.

Ideally brazilianbanks should offer users a quarterly income statement, whereby the values for each quarter only represent amounts earned or expensed during that period, with the option to retain the income data on a semester basis as originally reported.

Encountered parse error and object 'all_data_info' not found error

Hi, thank you so much for creating this package. I am currently trying to use it to collect financial data for Brazil and I have encountered a few errors along the way, and I would appreciate it if you provide any idea as to overcoming them.

One of the errors I have encountered was "Error in parse_con(txt, bigint_as_char) : parse error: premature EOF" when the function is downloading the data. I tried to delete the json file and redownload it again using this function but it doesn't seem to work.
image.
This error occurred when I called bank_df <- get_bank_stats(yyyymm_start = 200203, yyyymm_end = 200212)

Another error I encountered was "Error in dplyr::filter(., Report_column %in% c(5, 79, 91, 94, 98) & td == :
object 'all_data_info' not found".
image
This happened when I excluded the year and month of the problematic download above (I used bank_df <- get_bank_stats(yyyymm_start = 200203, yyyymm_end = 200209)), but this error will then appear instead.

I would really appreciate if you could provide any insights on this! Thank you!

Data might be incompletely merged

Assuming the result of a get_bank_stats() is assigned to variable "bank_data", the following code demonstrates that there are no existing record of Itaú's lending to the States in Southern Brazil for the quarter ending on June 2014:

bank_data %>% filter(FinInst == 1000080099) %>% select(Quarter, South)

This is likely to be a limited case, but still, worth checking.

Faster data loading

Since launch of brazilianbanks, DuckDB has made impressive gains in performance speed and it supports JSON. It would be good to explore how it can be leveraged to lead to faster data loading times for users.

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.