Closed mattizem closed 8 years ago
I'm not sure why that function would have worked before, but not now... it hasn't changed since v0.20-1. As you suggest, it might have something to do with R itself, and/or xts.
That said, I can verify that it does not work now, so thank you very much for the report and reproducible example:
require(quantmod)
getSymbols("^GSPC")
GMMA(Cl(GSPC))
Error in array(r, dim = d, dimnames = if (!(is.null(n1 <- names(x[[1L]])) & :
length of 'dimnames' [1] not equal to array extent
FIrst of all. Big thanks for TTR!
I've noticed a difference in
GMMA
from old version to new version of TTR (or other updated part of my R setup...)This used to work:
But doesn't work on my new setup. I get this error:
After digging around I've settled on this instead for my new setup. I'm switching to data.frame as this is what the
ttrc
object is in example in the reference manual.Am I thinking wrong or is there something in column naming or such I must adhere to in new version of TTR, as I suppose TTR is still working with xts?
Old system (don't laugh please):
New system:
Big thanks!