Deleting multiple columns in data frame

I am trying to use the select function to delete several columns but I keep getting a message saying that the column trip_id does not exist. But it does.
all_trips<-all_trips %>%
select(-c(trip_id, gender, birthyear)
Any help you can give me I will surely appreciate it!

Please post the output of


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.