[R] Output of row and column names

Florian.Koller@gfk.de Florian.Koller at gfk.de
Tue Nov 22 12:04:49 CET 2005





Dear all,

I am looking for a way to identify the row and column names of all elements
within a matrix which fulfill some specified condition.

Example: I have a correlation matrix of the following form:

      Y1    Y2
X1    0.4   0.3
X2    0.6   0.1

Suppose, I want to know which elements are smaller than 0.2, so the desired
output should be something like:

"X2 Y2"


Thank you,
Florian Koller



______________________
GfK Fernsehforschung GmbH
Research Consulting & Development
Nordwestring 101
D-90319 Nürnberg
Fon  +49 (0)911 395-3554
Fax  +49 (0)911 395-4130
www.gfk.de / www.gfk.com



_________________________

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.




More information about the R-help mailing list