### Solution 2 library(dplyr) df %>% select(A, B, E) ### Solution 2 new_df <- subset(df, select=c("A", "B", "C"))