Replace df <- df %>% ... with a shortcut This lhs %<>% rhs from the magrittr package. So in your case example %<>% select(- mpg)