Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)
Peter Dalgaard BSA
27 Apr 1999 23:38:32 +0200
> 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
Found 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 work
Erm. That one isn't multivariate:
It's just getting prettyprinted in 4 columns because it happens to be
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (firstname.lastname@example.org) 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: email@example.com