title: R - How to intersect() and include duplicates?
body: <p>I have the following character fields I am trying to intersect. These should be equal. </p>
  
  <pre><code>&gt; char.y[[892]]
   [1] "E" "d" "w" "a" "r" "d" "s" " " "L" "i" "f" "e" "s" "c" "i" "e" "n" "c" "e" "s"
  &gt; char.x[[892]]
   [1] "E" "d" "w" "a" "r" "d" "s" " " "L" "i" "f" "e" "s" "c" "i" "e" "n" "c" "e" "s"
  &gt; intersect(char.x[[892]], char.y[[892]])
   [1] "E" "d" "w" "a" "r" "s" " " "L" "i" "f" "e" "c" "n"
  &gt; 
  </code></pre>
  
  <p>expected result: </p>
  
  <pre><code>"E" "d" "w" "a" "r" "d" "s" " " "L" "i" "f" "e" "s" "c" "i" "e" "n" "c" "e"
  </code></pre>