From ripley@stats.ox.ac.uk  Mon Apr  3 20:56:21 2000
From: ripley@stats.ox.ac.uk (Prof Brian D Ripley)
Date: Mon, 3 Apr 2000 20:56:21 +0100 (BST)
Subject: [Rd] cbind.ts(),ts.union() (PR#508)
In-Reply-To: <200004031808.UAA29180@pubhealth.ku.dk>
Message-ID: <Pine.GSO.4.05.10004032053370.14448-100000@auk.stats>

On Mon, 3 Apr 2000 koller2@fgr.wu-wien.ac.at wrote:

> Full_Name: Wolfgang Koller
> Version: 1.0.0
> OS: linux 
> Submission from: (NULL) (137.208.7.48)
> 
> 
> > data(UKLungDeaths)
> > ts.union(mdeaths, fdeaths,dframe=TRUE)
> Error in names<-.default(*tmp*, value = nmsers) : 
>         names attribute must be the same length as the vector
> > cbind(mdeaths, fdeaths,dframe=TRUE)
> Error in names<-.default(*tmp*, value = nmsers) : 
>         names attribute must be the same length as the vector
> 
> should not give an error

Those are the same thing.  Replace

       x <- vector("list", n)
by

       x <- vector("list", nser)

which was not too hard to debug, surely?

> BR#239--241

Eh?  That's beyond me!

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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


[Rd] cbind.ts(),ts.union() (PR#508)
Prof Brian D Ripley