Description Usage Arguments Details Value Note Author(s) References See Also Examples
Download, or download and append stock split data from Yahoo! Finance.
1 2 3 4 5 6 7 8 |
Symbol |
The Yahoo! stock symbol |
from |
date from in CCYY-MM-DD format |
to |
date to in CCYY-MM-DD format |
env |
where to create object |
src |
data source (only yahoo is valid at present) |
auto.assign |
should results be loaded to env |
auto.update |
automatically add split to data object |
verbose |
display status of retrieval |
... |
currently unused |
Eventually destined to be a wrapper function along the lines
of getSymbols
to different sources - this currently
only support Yahoo data.
If auto.assign is TRUE, the symbol will be written
to the environment specified in 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 split data
as an xts
object. NA
is returned if there
is no split data.
This function is very preliminary - and will most likely change significantly in the future.
Josh Ulrich
Yahoo! Finance: http://finance.yahoo.com
1 2 3 4 5 6 7 | ## Not run:
getSymbols("MSFT")
getSplits("MSFT")
getSplits(MSFT)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.