subset everything except a column in r code example Example: select all columns except one by name in r mtcars[, -which(names(mtcars) == "carb")]