Hello,

I went through this post on ensemble learning in R and tried to implement something similar in R using

```
new_predict <- (knn_predict+randomForestPredict)/2 but it is giving an error saying:
```

I understand that this is because I cannot combine models predicting factors in this way.

How do I then achieve combining the results from KNN and Random Forests in R?

Can someone please help me with this!!