getFinancials: Download and View Financial Statements

Description Usage Arguments Details Value Note Author(s) References Examples

Description

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

Usage

1
2
3
4
5
6
getFinancials(Symbol, env = parent.frame(), src = "google", 
              auto.assign = TRUE,
              ...)

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

Arguments

Symbol

one or more valid google symbol, as a character vector or semi-colon delimited string

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

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 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.

Value

Six individual matricies organized in a list of class ‘financials’:

IS

a list containing (Q)uarterly and (A)nnual Income Statements

BS

a list containing (Q)uarterly and (A)nnual Balance Sheets

CF

a list containing (Q)uarterly and (A)nnual Cash Flow Statements

Note

As with all free data, you may be getting exactly what you pay for.

Author(s)

Jeffrey A. Ryan

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
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)

## End(Not run)

R-Finance/quantmod documentation built on May 8, 2019, 4:49 a.m.