Hi,

I have a matrix BEE and want to find the row and column numbers of  
the minimum value in that matrix.
The command

which(BEE==min(BEE))

returns only one value which, I take, is the position of the minimum  
in a vector with as many elements as the matrix.

Is there a quick and simple way of getting row and column numbers?

Thanks,

Gonçalo











        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to