Learn R Programming

quantmod (version 0.3-4)

getFinancials: Download and View Financial Statements

Description

Download Income Statement, Balance Sheet, and Cash Flow Statements from Google Finance.

Usage

getFinancials(Symbol, env = .GlobalEnv, src = "google", 
              auto.assign = TRUE,
              ...)

viewFinancials(x, type=c('BS','IS','CF'), period=c('A','Q'), subset = NULL)

Arguments

Symbol
a valid google symbol
env
where to create the object
src
currently unused
auto.assign
should results be loaded to the environment
...
currently unused
x
an object of class financials
type
type of statement to view
period
period of statement to view
subset
xts style subset string

Value

  • Six individual matricies organized in a list of class financials:
  • ISa list containing (Q)uarterly and (A)nnual Income Statements
  • BSa list containing (Q)uarterly and (A)nnual Balance Sheets
  • CFa list containing (Q)uarterly and (A)nnual Cash Flow Statements

Details

A utility to download financial statements for publically traded companies. The data is directly from Google finance. All use of the data is under there Terms of Service, available at http://www.google.com/accounts/TOS.

Individual statements can be accessed using standard Rlist 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.

References

Google Finance BETA: http://finance.google.com/finance

Examples

Run this code
JAVA <- getFinancials('JAVA')
AAPL <- getFin('AAPL')

JAVA$IS$Q   # Quarterly Income Statement
AAPL$CF$A   # Annual Cash Flows

str(AAPL)

Run the code above in your browser using DataLab