[Rd] row.names, rownames; colnames, no col.names?

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Mon, 11 Dec 2000 23:25:34 +0100


>>>>> A J Rossini writes:

> There's a bit of a symmetry issue, which may or may not be important
> (led to 15 seconds of confusion until I got my bearings straight): 

> row.names, rownames; colnames, no col.names? 

> I _NOW_ realize the difference between row.names and rownames, but
> is there any reason not to have col.names for re-naming columns in a
> data.frame? 

> (if there is, I don't particular need to know it, but it might make a
> nice FAQ).

Re col.names, certainly not for 1.2.0.

I am personally not a big fan of advertising row.names, as I think it is
too close to the rownames of the matrix interpretation of data frames.
This is why R has abstract functions case.names() and variable.names(),
which would be my preference.

-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._