title: Distance matrix in R
body: <p>I have to create a distance matrix using R. My data is in an Excel file which contains 300 rows and 10 columns. I have to create distance matrix based on the values of 9th column. For example </p>
  
  <pre><code>   s s s s s
  s  1
  s  2 2
  s  3 3 4
  s  4 4 7 3
  s  5 5 8 2 8
  </code></pre>
  
  <p>How to create this type of matrix?</p>