title: How to calculate different well-known similarity or distance measures between two vectors in R?
body: <p>I want to compute the similarity (distance) between two vectors:</p>
  
  <pre><code>v1 &lt;- c(1, 0.5, 0, 0.1)
  v2 &lt;- c(0.7, 1, 0.2, 0.1)
  </code></pre>
  
  <p>I just want to know if a package is available for calculating different well-known similarity (distance) measures in R? For example, "Resnik", "Lin", "Rel", "Jiang",...</p>
  
  <p>The implementation of these method is not hard, but I really think it must be defined in some packages in R.</p>
  
  <p>After some googling I found a package <a href="http://www.bioconductor.org/packages/release/bioc/vignettes/GOSemSim/inst/doc/GOSemSim.pdf" rel="noreferrer">"GOSemSim"</a>, which contains most measures, but it's specific to the biomedical application and I can't use them for computing the similarity between two vectors.</p>