[Rd] merge bug fix in R 2.15.0

From: Matthew Dowle <mdowle_at_mdowle.plus.com>
Date: Wed, 14 Mar 2012 10:21:20 +0000

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.

$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 Received on Wed 14 Mar 2012 - 10:23:31 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 Mar 2012 - 20:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive