title: R: how to compute the distance between the columns of a matrix?
body: <p>The R function <code>dist</code> "computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix".</p>
  
  <p>However, I want the distance measure to be computed between the <em>columns</em> of a data matrix, not the rows! How can I do that?</p>
  
  <p>Do I need to rotate the matrix. If so, how? If not, should I use a different function?</p>