From p.dalgaard@biostat.ku.dk  Tue Apr 27 22:38:32 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 27 Apr 1999 23:38:32 +0200
Subject: Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)
In-Reply-To: maechler@stat.math.ethz.ch's message of "Tue, 27 Apr 1999 19:32:05 +0200 (MET DST)"
References: <199904271732.TAA18748@pubhealth.ku.dk>
Message-ID: <x2aevt7nhj.fsf@blueberry.kubism.ku.dk>

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 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:

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


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