Im surprised you shared output for your successful code but not for the code you are having trouble with...
Can you identify with me what package this train function is from?
https://www.rdocumentation.org/search?q=train
Im surprised you shared output for your successful code but not for the code you are having trouble with...
Can you identify with me what package this train function is from?
https://www.rdocumentation.org/search?q=train