multigetYahooPrices: Fetches closing prices of multiple stock tickers

Description Usage Arguments Value Author(s) See Also Examples

Description

Fetches a zoo data.frame of daily closing prices of multiple stock tickers.

Usage

1
multigetYahooPrices(components, start, end, quiet = FALSE, adjust = TRUE)

Arguments

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 FALSE, then information is printed about the progress of the fetch operation

adjust

If TRUE, then adjusted closing prices are returned. Otherwise, unadjusted prices are returned.

Value

Returns a zoo data.frame containing the closing prices of the series listed in the components parameter, one column per price series.

Author(s)

Matthew Clegg matthewcleggphd@gmail.com

Christopher Krauss christopher.krauss@fau.de

Jonas Rende jonas.rende@fau.de

See Also

getYahooData

Examples

 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)

partialCI documentation built on May 1, 2019, 8:21 p.m.