title: Combine vector and data.frame matching column values and vector values
body: <p>I have</p>
  
  <pre><code>vetor &lt;- c(1,2,3)
  data &lt;- data.frame(id=c('a', 'b', 'a', 'c', 'a'))
  </code></pre>
  
  <p>I need a data.frame output that match each vector value to a specific id, resulting:</p>
  
  <pre><code>  id vector1
  1  a       1
  2  b       2
  3  a       1
  4  c       3
  5  a       1
  </code></pre>