maechler@stat.math.ethz.ch
1999-Apr-27 17:32 UTC
Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)
Paul wrote to R-devel : PaulG> ts() is giving me problems on Solaris: PaulG> R : Copyright 1999, The R Development Core Team PaulG> Version 0.64.0 (April 8, 1999) PaulG> ... >> z <- ts(matrix(1:20,10,2), start=c(1969,1), frequency=12) >> max(abs(z-z)) PaulG> Error: invalid time series parameters specified >> traceback() PaulG> [1] "max(abs(z - z))" >> max(abs(z+z)) PaulG> Error: invalid time series parameters specified This is a SEVERE (new?) bug. it's already visible as > z <- ts(matrix(1:48,ncol=2), start=c(1969,1), frequency=12); z+z Error: invalid time series parameters specified Note that not all multivariate ts show the problem; e.g., > data(presidents) # also a multivariate ts > p <- presidents > p + p > 3 * p all work -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1999-Apr-27 21:38 UTC
Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)
maechler@stat.math.ethz.ch writes:> This is a SEVERE (new?) bug. > > it's already visible as > > > z <- ts(matrix(1:48,ncol=2), start=c(1969,1), frequency=12); z+z > Error: invalid time series parameters specifiedFound and squashed (setting tsp attrib before dims on the result is a bad idea, since tspgets checks with for consistency with nrows(vec)!). Committed for 0.64.1.> > Note that not all multivariate ts show the problem; e.g., > > > data(presidents) # also a multivariate ts > > p <- presidents > > p + p > > 3 * p > > all workErm. That one isn't multivariate:> dim(p)NULL It's just getting prettyprinted in 4 columns because it happens to be quarterly data... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._