title: convert object of class "dist" into data frame in r
body: <p>if possible to convert a data frame to an object of class "dist" is it possible to do just the opposite? convert class "dist" to data frame? for example</p>
  
  <p>&lt; dist(hasil)</p>
  
  <pre><code>   1            2            3           4
  2  0.088814413                                    
  3  0.084929382  0.030413813                        
  4  0.063245553  0.029120440 0.044418465            
  5  0.061983869  0.027018512 0.036400549 0.009055385
  </code></pre>
  
  <p>and the result in data frame</p>
  
  <p>&lt;</p>
  
  <pre><code>   col          row          distance
     1            2            0.088814413
     1            3            0.084929382          
     1            4            0.063245553
     1            5            0.061983869
     2            3            0.030413813
     2            4            0.029120440
     2            5            0.027018512
     3            4            0.044418465
     3            5            0.036400549
     4            5            0.009055385
  </code></pre>