Skip to content
Prev 30106 / 398503 Next

Index of item in matrix

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