Re: [Rd] Underlying representation for rownames

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 18 Oct 2007 18:36:33 +0100 (BST)

I think ?.row_names_info is what you are looking for (although data frames have row.names and matrices have rownames, pace the subject line).

On Thu, 18 Oct 2007, hadley wickham wrote:

> Is it possible to get at the underlying representation of row names -
> ie. what you see in the output from dput:
>
>> df <- data.frame(1:4)
>> dput(df)
> structure(list(X1.4 = 1:4), .Names = "X1.4", row.names = c(NA,
> -4L), class = "data.frame")
>
> I would like to be able to tell if a data frame has the default row
> names, or if they have been changed by the user. I need this for
> rggobi because in GGobi row names should be unique across all data
> frames, unless explicitly set by the user.
>
> Thanks,
>
> Hadley
>
>
>

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 18 Oct 2007 - 17:39:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.