[R] Index of item in matrix

Ott Toomet otoomet at econ.dk
Thu Apr 3 06:52:47 CEST 2003


Hi,

 | Date: Wed, 02 Apr 2003 14:39:05 -0400
 | From: John Janmaat <john.janmaat at acadiau.ca>
 | Hello All,
 | 
 | Is there a fast way to find the index(row and column) of a point in a 
 | matrix?

what do you mean as ,,a point in a matrix''?  Perhaps 
which( ,arr.ind=T) does what you are looking for.

Best wishes,
Ott



More information about the R-help mailing list