importEquityPricesToXtsMatrix: Import symbols from Yahoo! Finance using getSymbols directly...

Description Usage Arguments Value Examples

View source: R/E-importEquityPricesToXtsMatrix.R

Description

Import symbols from Yahoo! Finance using getSymbols directly into a price matrix as xts object

Usage

1
2
3
importEquityPricesToXtsMatrix(symbolVector, startDate = "2000-01-01",
  endDate = Sys.Date(), priceType = "Adjusted", freq = "daily",
  keep = TRUE)

Arguments

symbolVector

is a vector of symbols to download

startDate

staring date of the matrix

endDate

ending date of the matrix

priceType

one of Open/High/Low/Close/Adjusted

freq

one of daily/weekly/monthly/quarterly or yearly

keep

logical, whether to keep the original OHLC xts matrices or to drop them

Value

an xts object with number of columns equal to length of symbolVector

Examples

1
none

erolbicero/tsconv documentation built on May 13, 2017, 8:23 p.m.