Multivariate ts -- arithmetic bug [ for SOME time-series ] (PR#178)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
27 Apr 1999 23:38:32 +0200
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._