I am trying to use quantile regression forest function in R (quantregForest) which is built on Random Forest package. I am getting a type mismatch error that I can\'t quite
Expanding on @user1849895's solution:
common <- intersect(names(train), names(test)) for (p in common) { if (class(train[[p]]) == "factor") { levels(test[[p]]) <- levels(train[[p]]) } }