I am learning and implementing the XGBoost model on the iris dataset in R. But I\'m running into the following issue when I run the below code:
data(iris) train.