From ligges at statistik.tu-dortmund.de  Sat Mar 17 17:26:25 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Sat, 17 Mar 2012 17:26:25 +0100
Subject: [Rd] merge bug fix in R 2.15.0
In-Reply-To: <ec32103ec8b4497fb9028095a195129c.squirrel@webmail.plus.net>
References: <faaeae7eaeb52d6007d62285a676364c.squirrel@webmail.plus.net>
	<ec32103ec8b4497fb9028095a195129c.squirrel@webmail.plus.net>
Message-ID: <4F64BB31.7060609@statistik.tu-dortmund.de>



On 15.03.2012 22:48, Matthew Dowle wrote:
>
> Anyone?
>
>> Is it intended that the first suffix can no longer be blank? Seems to be
>> caused by a bug fix to merge in R 2.15.0.


Right, the user is now protected against confusing himself by using 
names that were not unique before the merge.

Uwe Ligges



>> $Rdevel --vanilla
>> DF1 = data.frame(a=1:3,b=4:6)
>> DF2 = data.frame(a=1:3,b=7:9)
>> merge(DF1,DF2,by="a",suffixes=c("",".1"))
>> Error in merge.data.frame(DF1, DF2, by = "a", suffixes = c("", ".1")) :
>>    there is already a column named ?b?
>>
>> $R --vanilla
>> R version 2.14.2 (2012-02-29)
>>> DF1 = data.frame(a=1:3,b=4:6)
>>> DF2 = data.frame(a=1:3,b=7:9)
>>> merge(DF1,DF2,by="a",suffixes=c("",".1"))
>>    a b b.1
>> 1 1 4   7
>> 2 2 5   8
>> 3 3 6   9
>>>
>>
>> Matthew
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] merge bug fix in R 2.15.0
Uwe Ligges