title: Error in rbind(deparse.level, ...) : numbers of columns of arguments do not match R
body: <p>I am trying to do some feature engineering on test and train data. I am well versed with python but new to R.</p>
  
  <pre><code>#Row binding train &amp; test set for feature engineering
  train_test = rbind(train, test)
  </code></pre>
  
  <p>It seems that my train and test data have different number of columns. How to resolve this so that the only columns which are common in both dataframes stay?</p>
  
  <pre><code>Error in rbind(deparse.level, ...) : 
    numbers of columns of arguments do not match
  </code></pre>