
getDividends(Symbol,
from = "1970-01-01",
to = Sys.Date(),
env = parent.frame(),
src = "yahoo",
auto.assign = FALSE,
auto.update = FALSE,
verbose = FALSE, ...)
env
with a
.div appended to the name.If auto.update is TRUE and the object is of class
xts
, the dividends will be included as an
attribute of the original object and be reassigned
to the environment specified by env
.
All other cases will return the dividend data
as an xts
object.
getSymbols
to different sources - this currently
only support Yahoo data.getSymbols
getSymbols("MSFT")
getDividends("MSFT")
getDividends(MSFT)
Run the code above in your browser using DataLab