I would like to remove the column vector using dplyr> = 0.7
library(dplyr) data(mtcars) rem_cols <- c("wt", "qsec", "vs", "am", "gear", "carb") head(select(mtcars, !!paste0("-", rem_cols)))
Error: rows must match column names. Unknown columns: -wt, -qsec, -vs, -am, -gear, -carb
dplyr <0.7 worked as follows:
head(select_(mtcars, .dots = paste0("-", rem_cols)))
I tried all combinations of rlang: syms (), !!, !!!, quo and enquo that I can come up with ... help !?
Scott source share