Skip to content

quantmod: corp action

2 messages · Andy Zhu, Joshua Ulrich

#
Hi Andy,

getDividends() returns dividends (adjusted for splits) from Yahoo.

The TTR fuction getYahooData() allows you to pull prices, splits and
dividends from Yahoo.

# Pull prices (adjusted for splits and dividends),
# volume (adjusted for splits), splits, and dividends
# (adjusted for splits).
x <- getYahooData("GE")

# Pull only splits and dividends
x <- getYahooData("GE",type="split")

Best,
Josh
--
http://quantemplation.blogspot.com
On Tue, Mar 17, 2009 at 7:54 PM, Andy Zhu <andyzhu35 at yahoo.com> wrote: