pp.TTR.multsymbol {pprobeSup}R Documentation

Read data from Yahoo for multiple assets

Description

A poorly implemented function to get a specific type of data from Yahoo for a number of assets.

Usage

pp.TTR.multsymbol(symbols, start, end, item = "Close", 
	adjust = TRUE, verbose = TRUE)

Arguments

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 TRUE, prices are adjusted for dividends and splits.

verbose

a logical value. if TRUE, then progress information is printed.

Details

This is an unsophisticated wrapper for the getYahooData function in the TTR package.

Value

An object of class xts with dates along rows and assets along columns.

Testing status

Not formally tested.

Revision

This help file was last revised 2013 May 02.

See Also

pp.TTR.multmacd.

Examples

# create price matrix
sp5.close <- as.matrix(pp.TTR.multsymbol(sp5.names, 20060101,
	20120701))

[Package pprobeSup version 1.00 Index]