Description Usage Arguments Details Value Author(s) References See Also Examples
This functions load to R a data.frame with all financial statements for the specified firms.
1 2 | getFinancialStatements(firms, quarter = NULL)
getFinancialStatements(firms, quarter = "yyyy-mm")
|
firms |
Value that must have one of the values below: CVM code Uses the CVM code to search for the firm. Format: 123456 Examples (Itau Unibanco): getFinancialStatements(firms = 19348) or getFinancialStatements(firms = 019348) CNPJ Search for the firm using their CNPJ (Cadastro Nacional de Pessoa Juridica - National Registry of Legal Person). Format: '12.345.678/9012-34' Example (Itau Unibanco): getFinancialStatements(firms = '60.872.504/0001-23') Negotiation code Uses the Negotiation Code to find the firm's balance sheet. Inside the function, only the first four characters are used. Format: 'ABCD1' Example (Itau Unibanco): getFinancialStatements(firms = 'ITUB3') As the parameter suggests, it is also possible to use a vector with several companies (firms = c("VALE", "PETRO", "WEGE")) or you can use firms = "all". |
quarter |
If setted as NULL the function return a table with the principal accounts of all financial statements. The format to this parameter is: "yyyy-mm". Example.: "2016-12". |
In Brazil, some operations of a financial nature are calculated within the operating result, with many fundamentalist indexes.
In the future we intend to create functions that return the financial statements to international accounting standards.
Described in the examples section!
Michel Ricardo Meyer michel.ricardo.meyer@gmail.com
The documents with financial statements are available here in the CVM system. More information could also be found in the CVM's site
getBalanceSheet
getIncomeStatements
1 2 3 4 5 6 7 8 9 10 11 | # There are two ultimate examples, The first is:
getFinancialStatements(c(4170, "CIA VALE DO RIO DOCE", "33.592.510/0001-54", "VALE"))
# That downloads the vale financial statements four times,
# One time for each kind of company information given.
# Notice that the function also accepts the name of the firm, unlike said in arguments section.
# The second example is:
getFinancialStatements("VALE", "2015-12")
# Here there are a difference in the output, the information looks much more like
# the original format that it's available in CVM's system. it's intentional,
# this is the original infomation. Use it if you need to.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.