title: cbind throwing error in R
body: <p>I have a dataframe of dimensions<code>[1]  1 11</code> and <code>[1]  3 29</code>. I am trying to cbind these two dataframes such that dataframe having one row will be copied thrice to the resultant dataframe. </p>
  
  <p>When I use cbind, it works sometimes but throws error as </p>
  
  <blockquote>
    <p>Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 1, 3</p>
  </blockquote>
  
  <pre><code>&gt; dim(a)
  [1]  1 11
  &gt; dim (b)
  [1]  3 29
  &gt; cbind(a,b)
  Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 1, 3
  </code></pre>
  
  <p>However if I try subsetting, it works.</p>
  
  <pre><code>&gt; cbind(a[1:10],b)  #Works Fine
  &gt; cbind(a[1:11],b) #Throws Error
  </code></pre>
  
  <p>Note: It works sometimes, but doesn't work if I run the code again.</p>
  
  <p>Thanks</p>