R code run model on all columns besides one code example Example: select all columns except one by name in r mtcars[, -which(names(mtcars) == "carb")]