RE: [R] ts.intersect a multivariate and univariate ts

From: Andy Bunn <abunn_at_whrc.org>
Date: Mon 06 Jun 2005 - 22:19:10 EST


> >
> > R > w <- list(rnorm(10), rnorm(10))
> > R > x <- ts(w, start = 1980)
>
> Even though you don't get an error message this statement is
> erroneous. ?ts discusses the valid possibilities.

So it does, might I suggest add something like this to ts:

    if (is.list(data))

       stop("Data must be a numeric vector or matrix")

Thanks all for the clarifications and discussion, Andy



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 06 22:29:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:23 EST