R / historical data from yahoo

Discussion in 'Data Sets and Feeds' started by jk90029, Jan 3, 2015.

  1. Dear-

    Daily return rate can be downloaded fine, as follows.

    install.packages("tawny")
    library(tawny)
    SnP500 <- c("ACE", ... , "ZTS")
    ReturnFrom2007 <- getPortfolioReturns(SnP500 , start = "2007-01-01")

    Instead of the % data, I like to receive a matrix with daily close.

    What is the R command (other than the getPortfolioReturns) to receive the daily close? If possible, OHLC are hoped to be downloaded, as well.

    Thanks in advance.

    -Jay
     
  2. Please do NOT suggest me
    getSymbols(), because this give 500 different pieces, instead of ONE MATRIX.