title: combine vector to data frame by rownames filling gaps with zeros
body: <p>i have the following conundrum. I have a dataframe x that looks like:</p>
  
  <pre><code>     v2      v3    
  10   4.0      3.0
  11   5.0      3.0
  12   6.0      9.0
  13   5.0      6.0    # where 10-14 are rownames
  14   3.0      6.0
  </code></pre>
  
  <p>and then the datafame y:  </p>
  
  <pre><code>     value        
  11   99            
  13   88      #where 11,13,14 are row names
  14   33
  </code></pre>
  
  <p>I would like to add value to x matching the rownames and filling the gaps with zeros.i.e.:</p>
  
  <pre><code>      v2      v3    value
  10   4.0      3.0     0
  11   5.0      3.0     99
  12   6.0      9.0      0
  13   5.0      6.0     88
  14   3.0      6.0     33
  </code></pre>
  
  <p>Although if I have to fill with NAs maybe I can do this and then change NAs to zeros within the new y vector afterwards.</p>
  
  <p>I have been trying variations of <code>rbind.fill</code> from <code>plyr</code>  using <code>newDF&lt;-do.call(rbind.fill)</code>but nothing i am achieving is working out the way i hope.</p>
  
  <p>EDIT
  i GOT IT TO GIVE NAS USING
  <code>merge(x,y,all=TRUE,by='row.names')</code></p>