title: Combine dataframes in R
body: <p>I have two data frames in <code>R</code> as follows</p>
  <pre><code>set.seed(123)
  A &lt;- as.data.frame(matrix(rnorm(5 * 10, mean = 0, sd = 1), 5, 10))
  B &lt;- as.data.frame(matrix(rnorm(5 * 10, mean = 0, sd = 1), 5, 10))
  </code></pre>
  <p>How can I create a new frame C that has the following form:</p>
  <pre><code>C &lt;- as.data.frame(cbind(A[,1],B[,1],A[,2],B[,2],...,A[,5],B[,5]))
  </code></pre>