
Last chance! 50% off unlimited learning
Sale ends in
Download Income Statement, Balance Sheet, and Cash Flow Statements.
getFinancials(Symbol, env = parent.frame(), src = "google",
auto.assign = TRUE,
...)viewFinancials(x, type=c('BS','IS','CF'), period=c('A','Q'),
subset = NULL)
Six individual matrices organized in a list of class ‘financials’:
a list containing (Q)uarterly and (A)nnual Income Statements
a list containing (Q)uarterly and (A)nnual Balance Sheets
a list containing (Q)uarterly and (A)nnual Cash Flow Statements
one or more valid google symbol, as a character vector or semi-colon delimited string
where to create the object
currently no sources are implemented
should results be loaded to the environment
currently unused
an object of class financials
type of statement to view
period of statement to view
‘xts’ style subset string
Jeffrey A. Ryan
A utility to download financial statements for publicly traded companies.
Individual statements can be accessed using
standard R list extraction tools, or by
using viewFinancials
.
viewFinancials
allows for the use of
date subsetting as available in the xts
package, as well as the specification of
the type of statement to view. BS for balance
sheet, IS for income statement, and CF for cash flow
statement. The period argument is used to identify
which statements to view - (A) for annual and (Q)
for quarterly.
if (FALSE) {
getFinancials('JAVA') # returns JAVA.f to "env"
getFin('AAPL') # returns AAPL.f to "env"
viewFin(JAVA.f, "IS", "Q") # Quarterly Income Statement
viewFin(AAPL.f, "CF", "A") # Annual Cash Flows
str(AAPL.f)
}
Run the code above in your browser using DataLab