search for: dataspy

Displaying 1 result from an estimated 1 matches for "dataspy".

Did you mean: dataset
2012 Nov 02
2
Date format conversion from "2012-09-20" to "2012:09:20"
...rtDate to lastDate as given below?. #***************************************************************** # Load historical data #****************************************************************** library('quantmod') endDate =Sys.Date() startDate = as.Date(endDate-30, order="ymd") dataspy = getSymbols("SPY", from = startDate, to=endDate, auto.assign = FALSE) lastDate=startDate+5 #subset first 5 days dataspy['startDate::lastDate'] print(dataspy) Thanks veepsirtt -- View this message in context: http://r.789695.n4.nabble.com/Date-format-conversion-from-2012-09-...