I am trying to follow up the example code in the "Building Predictive Models in R Using the caret Package" paper from Max Kuhn.
Here is the part of the code:
library("caret") set.seed(1) inTrain <- createDataPartition(mutagen, p = 3/4, list = FALSE)
However, after the following,
trainDescr<-descr[ inTrain, ] Error: object 'descr' not found
I get the "Error: object 'descr' not found" message. Looks like 'descr' is not recognized. Can anyone tell me how to fix this please?
: Kuhn, M. (2008),
"Building Predictive Models in R Using the caret Package,"
Journal of Statistical Software, November, Volume 28, Issue 5.