| pp.TTR.multsymbol {pprobeSup} | R Documentation |
A poorly implemented function to get a specific type of data from Yahoo for a number of assets.
pp.TTR.multsymbol(symbols, start, end, item = "Close", adjust = TRUE, verbose = TRUE)
symbols |
a character vector giving the symbols of the assets of interest. |
start |
an integer in the form of yyyymmdd giving the starting date. |
end |
an integer in the form of yyyymmdd giving the ending date. |
item |
a string giving the data to be retrieved. |
adjust |
a logical value.
if |
verbose |
a logical value.
if |
This is an unsophisticated wrapper for the getYahooData
function in the TTR package.
An object of class xts with dates along rows and
assets along columns.
Not formally tested.
This help file was last revised 2013 May 02.
# create price matrix sp5.close <- as.matrix(pp.TTR.multsymbol(sp5.names, 20060101, 20120701))