[R-SIG-Finance] how do you use get.hist.quote() to obtain dividend

Jeff Ryan jeff.a.ryan at gmail.com
Mon Jan 5 03:57:53 CET 2009


Try quantmod:

library(quantmod)
?getDividends

> getDividends("MSFT")
> MSFT.div
           [,1]
2003-02-19 0.08
2003-10-15 0.16
2004-08-23 0.08
2004-11-15 3.08
2005-02-15 0.08
2005-05-16 0.08
2005-08-15 0.08
2005-11-15 0.08
2006-02-15 0.09
2006-05-15 0.09
2006-08-15 0.09
2006-11-14 0.10
2007-02-13 0.10
2007-05-15 0.10
2007-08-14 0.10
2007-11-13 0.11
2008-02-19 0.11
2008-05-13 0.11
2008-08-19 0.11
2008-11-18 0.13

HTH
Jeff

On Sun, Jan 4, 2009 at 7:31 PM, Andrew Yee <yee at post.harvard.edu> wrote:
> Apologies if this is a newbie question, but I've been able to use
> get.hist.quote() to obtain quote information.
>
> However, is there a way to use this function to obtain dividend distribution
> information?  Or is there a function for doing this?
>
> Thanks,
> Andrew
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>



-- 
Jeffrey Ryan
jeffrey.ryan at insightalgo.com

ia: insight algorithmics
www.insightalgo.com



More information about the R-SIG-Finance mailing list