Re: [R] Named arrays

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Tue, 22 Apr 2008 02:39:31 +0000 (UTC)

Erhan <bilal.erhan_at_gmail.com> wrote in
news:83a530a9-cce8-41a2-80b5-9cb5ec5e0b64_at_m3g2000hsc.googlegroups.com:

> Hi! I need to access all the strings used as indexes in an array.
> Can someone tell me how to do that?
> I'm not sure this is the right place to ask, but I couldn't find
> another group.

In R dataframe indices can be either row or column names. For column names use;

?names

  ... and for row names:

?row.names

For matrix-like objects (of which dataframes are an instance) see also:

?rownames
?colnames

-- 
David Winsemius

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 22 Apr 2008 - 02:43:15 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 Tue 22 Apr 2008 - 03:30:31 GMT.

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

list of date sections of archive