[R] ts.intersect a multivariate and univariate ts

From: Andy Bunn <abunn_at_whrc.org>
Date: Sat 04 Jun 2005 - 06:42:13 EST


This seems like a FAQ, but I can't figure it out.

I have a mv ts object:

R > tsp(pg)
[1] 1982 2003 1

R > dim(pg)
[1] 22 12

and a univariate ts:

R > tsp(rw)
[1] 1690 1996 1

Yet, when I try to intersect them:

R > tsp(ts.intersect(rw, pg))
[1] 1982 2176 1

the process goes awry.

How to I get rw and pg to be one ts that runs from 1982 to 1996 and has 13 univariate time series in it. Any help appreciated.

-Andy

R > version

         _
platform i386-pc-mingw32

arch     i386
os       mingw32

system i386, mingw32
status
major 2
minor 1.0
year 2005
month 04
day 18
language R

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 Sat Jun 04 06:47:10 2005

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