search for: creturns

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

Did you mean: returns
2010 Jul 08
0
ttrTests Error
spData <- as.vector(getYahooData("SPY", start="19900101",end="20081231")[,"Close"]) > cr <- cReturns(spData, ttr = "sma", params=c(20)) Error in ind[t - k] <- pos[t - k + 1] - pos[t - k] : replacement has length zero I am getting the above error when running the cReturns function. Any ideas on this? How does one drill down into finction codes in R? Tx -- 'Raghu' [[alt...