From Kurt.Hornik@ci.tuwien.ac.at  Wed Feb  7 17:20:29 2001
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Wed, 7 Feb 2001 18:20:29 +0100
Subject: [Rd] RE: [R] Removing "row.names"
In-Reply-To: <Pine.A41.4.21.0102070757370.112748-100000@homer40.u.washington.edu>
References: <14977.28775.611743.933442@mithrandir.hornik.net>
 <Pine.A41.4.21.0102070757370.112748-100000@homer40.u.washington.edu>
Message-ID: <14977.33757.452637.165825@mithrandir.hornik.net>

>>>>> Thomas Lumley writes:

> On Wed, 7 Feb 2001, Kurt Hornik wrote:
>> Correct.  Let me rephrase the question: how can it be possible to set
>> the (variable) names in a data frame to something non-unique?

> 1) he didn't: there was only one column

Maybe I should be more careful when composing my emails :-)

I think I am also concerned about data frames with variable names which
are not syntactically valid, but one can also get that by creating the
data frame with `check.names = FALSE'.

> 2) we allow duplicated column names
>  For example
>   a<-data.frame(rnorm(10),rnorm(10)) 
>  gives a data frame with two columns having the same name. What do you
> think they should be called?  
> We discussed this some time ago in the context of offsets in glm(), and
> model.offset contains code to handle multiple "(offset)" columns.

Hmm, I must have missed that.

My understanding thus far was that I can always rely on unique case and
variable names in a data frame.  I see the potential usefulness in
allowing multiple "(offset)" columns in a model frame ... but wouldn't
that (at least in theory) call for using a different class?

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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] RE: [R] Removing "row.names"
Kurt Hornik