getEPS: Get historical Earnings Per Share of a stock

Description Usage Arguments Value See Also Examples

View source: R/getEPS.R

Description

This will use getFinancials to download the financial statements for Symbol. Then it will extract only the “Diluted Normalized EPS” row from the Income Statement and convert it to an xts object.

Usage

1
  getEPS(Symbol, freq = c("Q", "A"), src = "google")

Arguments

Symbol

A single valid google symbol as a string. (may be updated in the future to support vector and semi-colon delimited)

freq

Quarterly or Annual (but, only the first letter is used, so "Q" and "A" work also)

src

Only 'google' is currently supported.

Value

an xts object containing historical Diluted Normalized EPS according to google.

See Also

getEarnings for historic earnings estimates and actual earnings from earnings.com.

Examples

1
2
3
4
5
6
7
8
## Not run: 
getEPS("GOOG") # Quarterly by default
getEPS("GOOG","Annual")

# get a single xts object with several stocks' EPS
do.call(cbind, lapply(c("GOOG","MSFT","IBM"), getEPS))

## End(Not run)

qmao documentation built on May 2, 2019, 4:54 p.m.