title: Merging dataframes without changing values
body: <p>I have two dataframes</p>
  
  <pre><code>df1 &lt;- data.frame(c(1:10))
  df2 &lt;- data.frame(c(1,0,1,1,0,1,0,0,1,0)
  </code></pre>
  
  <p>I tried to merge them using this code:</p>
  
  <pre><code>merge(df1,df2,all = TRUE, sort = FALSE)
  </code></pre>
  
  <p>But my dataframe comes out really weird, there are 100 rows</p>
  
  <p>I want the dataframe to look like this:</p>
  
  <pre><code>col1    col2
  1       1
  2       0
  3       1
  4       1
  5       0
  6       1
  7       0
  8       0
  9       1
  10      0
  </code></pre>
  
  <p>How can I do this?</p>