title: How to find the indexes of the minimum value in whole dataframe?
body: <p>Assume i have the following dataset</p>
  
  <pre><code>dt&lt;-data.frame(id=1:10,X=sample(10),Y=sample(10))
  dt&lt;-as.data.frame(as.matrix(dist(dt)))
  for(i in 1:nrow(dt))
    dt[i,i]&lt;-NA
  </code></pre>
  
  <p>and <strong>i need to find the indexes of minimum value in whole dataframe?</strong> (row, and column)</p>