[R] finding cols and rows in a matrix

From: javier garcia <rn001_at_cebas.csic.es>
Date: Thu 28 Apr 2005 - 20:55:04 EST


Hi
Ive got big matrixes with just few non missing data, and would like to use or do a funtion to find the index of the row and col of one specified value. For example I just have one "1" value in the matrix, and one "2" value in the same matrix.

Has anyone an idea about how to extract the rowindex and colindex of the "1" value or the "2"?

Thanks



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 28 21:10:25 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST