title: Find cosine similarity between two arrays
body: <p>I'm wondering if there is a built in function in R that can find the cosine similarity (or cosine distance) between two arrays?</p>
  
  <p>Currently, I implemented my own function, but I can't help but think that R should already come with one.</p>