From ripley at stats.ox.ac.uk  Tue May  2 09:51:22 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 2 May 2006 08:51:22 +0100 (BST)
Subject: [Rd] row.names != rownames for data.frame?
In-Reply-To: <m24q09vf58.fsf@ziti.local>
References: <m24q09vf58.fsf@ziti.local>
Message-ID: <Pine.LNX.4.64.0605020847500.27331@gannet.stats.ox.ac.uk>

On Mon, 1 May 2006, Seth Falcon wrote:

> With a recent R 2.4 I notice the following:
>
> df <- data.frame(x=1:2)
>> row.names(df)
> [1] "1" "2"
>> rownames(df)
> [1] 1 2
>
> This seems related to recent changes in the internal storage format of
> the row names data for data frames.
>
> The man page for rownames says:
>
>     For a data frame, 'rownames' and 'colnames' are equivalent to
>     'row.names' and 'names' respectively.
>
> A number of Bioconductor packages seem to be relying on this.

Interesting: nothing on CRAN did.  Those are `equivalent' but not 
identical, but let's make them identical again.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] row.names != rownames for data.frame?
Prof Brian Ripley