I have a data frame with some dummy variables that I want to use as training set for glmnet
.
Since I'm using glmnet
I want to center and scale the features using the preProcess
option in the caret train
function. I don't want that this transformation is applied also to the dummy variables.
Is there a way to prevent the transformation of these variables?