[Rd] Problem with merge() (PR#1102)

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 27 Sep 2001 18:43:58 +0200


>>>>> "Don" == Don MacQueen <macq@llnl.gov> writes:

    Don> I have encountered a problem with merge() that appears to be a bug.
    Don> Here's an example to illustrate it.

    >> tmp1 <- data.frame(a=letters[1:3],b=LETTERS[2:4],x=1:3)
    >> tmpa <- expand.grid(a=letters[1:4],b=LETTERS[1:4])
    >> tmpm.1 <- merge(tmpa,tmp1)
    >> tmpm.2 <- merge(tmp1,tmpa)
    Don> Error in "names<-.default"(*tmp*, value = vnames) :
    Don> names attribute must be the same length as the vector


    Don> I'm using R 1.3.0, and it occurs on both the Macintosh and Solaris versions.
    >> version

Bug confirmed, also for the current version of R (1.3.1) and the 
development one.

I'll have a look.

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