From p.dalgaard@biostat.ku.dk  Thu Jun  7 15:44:56 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 07 Jun 2001 16:44:56 +0200
Subject: [Rd] cbind.data.frame(.) S/R incompatibility
In-Reply-To: Martin Maechler's message of "Thu, 7 Jun 2001 17:54:10 +0200"
References: <15135.41890.44535.542294@gargle.gargle.HOWL>
Message-ID: <x2n17ks61j.fsf@blueberry.kubism.ku.dk>

Martin Maechler <maechler@stat.math.ethz.ch> writes:

> In S-plus (5.1),
> 
>  > cbind(data.frame(x=1,y=2), data.frame(x=4,u=3))
>    x y x1 u 
>  1 1 2  4 3
> 
> whereas in R, the 3rd name is "x", the same as the 1st one.
> I think R should behave the same as S+5.1..

Actually, that's an S/S incompatibility:

S-PLUS : Copyright (c) 1988, 1996 MathSoft, Inc.
S : Copyright AT&T.
Version 3.4 Release 1 for Sun SPARC, SunOS 5.3 : 1996 
Working data will be in .Data 
cbind(data.frame(x=1,y=2), data.frame(x=4,u=3))
  x y x u 
1 1 2 4 3

(We might of course still want to follow the more recent S-PLUS,
although perhaps not put too draconian measures in to keep names
unique.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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.data.frame(.) S/R incompatibility
Peter Dalgaard BSA