From gregor.gorjanc at bfro.uni-lj.si  Wed Dec  6 11:08:22 2006
From: gregor.gorjanc at bfro.uni-lj.si (Gregor Gorjanc)
Date: Wed, 6 Dec 2006 10:08:22 +0000 (UTC)
Subject: [Rd] R-devel: rownames of a data.frame
References: <4508EE12.7030004@bfro.uni-lj.si>
	<loom.20061205T100716-59@post.gmane.org>
Message-ID: <loom.20061206T103459-539@post.gmane.org>

Martin Maechler <maechler <at> r-project.org> writes:
...
> because  colnames() and rownames() work via dimnames(), and so do
>  "colnames<-" and "rownames<-" ---  
> I think it would be unwise to change this, since it's well documented 
> property of these functions.
> 
> As you noted yourself,  using  names() and "names<-"
> i.e.,
>   names(df1) <- "bla"
> in the example above, is the recommended way for data frames and does not 
> change the rownames to character.

Thank you for this followup! It seems that I should have read the 
documentation more carefully. May I just suggest to add names in see also 
for row.names help page.

Regards, Gregor



[Rd] R-devel: rownames of a data.frame
Gregor Gorjanc