I am trying to do some feature engineering on test and train data. I am well versed with python but new to R.
#Row binding train & test set for feature engineering
train_test = rbind(train, test)
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?
Error in rbind(deparse.level, ...) :
numbers of columns of arguments do not match