Description Usage Arguments Value Author(s) See Also Examples
Fetches a zoo
data.frame
of daily closing prices of multiple stock tickers.
1 | multigetYahooPrices(components, start, end, quiet = FALSE, adjust = TRUE)
|
components |
Character vector of Yahoo ticker symbols |
start |
First date of desired data in YYYYMMDD format. Default is earliest date of all series |
end |
Last date of desired data in YYYYMMDD format. Default is the last date for which data is available |
quiet |
If |
adjust |
If |
Returns a zoo
data.frame
containing the
closing prices of the series listed in the components
parameter,
one column per price series.
Matthew Clegg matthewcleggphd@gmail.com
Christopher Krauss christopher.krauss@fau.de
Jonas Rende jonas.rende@fau.de
1 2 3 4 5 6 7 8 9 10 | ## Not run:
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
### Note: you must have a working internet
### connection for these examples to work!
spy.voo <- multigetYahooPrices(c("SPY","VOO"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.