Re: [Rd] Unexpected alteration of data frame column names

2007-05-17 Thread hpages
Hi, Thanks to both for your answers! Quoting Marc Schwartz <[EMAIL PROTECTED]>: > On Thu, 2007-05-17 at 10:54 +0100, Prof Brian Ripley wrote: > > To add to Marc's detective work. ?"[.data.frame" does say > > > > If '[' returns a data frame it will have unique (and non-missing) > > r

Re: [Rd] Unexpected alteration of data frame column names

2007-05-15 Thread Marc Schwartz
On Mon, 2007-05-14 at 23:59 -0700, Herve Pages wrote: > Hi, > > I'm using data.frame(..., check.names=FALSE), because I want to create > a data frame with duplicated column names (in the real life you can get such > data frame as the result of an SQL query): > > > df <- data.frame(aa=1:5, aa=9:

[Rd] Unexpected alteration of data frame column names

2007-05-15 Thread Herve Pages
Hi, I'm using data.frame(..., check.names=FALSE), because I want to create a data frame with duplicated column names (in the real life you can get such data frame as the result of an SQL query): > df <- data.frame(aa=1:5, aa=9:5, check.names=FALSE) > df aa aa 1 1 9 2 2 8 3 3 7