Skip to content
Prev 315101 / 398506 Next

locating element in distance matrix

On Jan 11, 2013, at 9:55 AM, eliza botto wrote:

            
I have no idea what htat means. Code is always helpful in resolving  
ambiguities.
?which
which( distmat == min(distmat), arr.ind=TRUE)

(It's possible to have more than one match and it would  be up to you  
to decide how to break ties.)