Displaying 1 result from an estimated 1 matches for "5878224".
Did you mean:
58722
2010 Jun 18
2
Find the 50 highest values in a matrix
Hi,
I have a huge matrix (4000 * 2000 data points) and I would like to retrieve
the coordinates (column and row) for the top 50 (or x) values. Some
positions in the matrix have NA as a value. These should be discarded.
My current method is to replace all NAs by 0, then rank all the values and
then extract the positions with the 50 highest ranks. It is very
time-consuming!
Is there a simpler