Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Tue, 27 Apr 1999 19:32:05 +0200 (MET DST)


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._