I have a list of dataframes each with the same columns. I want to drop some columns by index. How do I use a select command within a map function?
Here is my attempt:
data <- data %>% map(~ select(-c(7, 11, 13, 14)))
Any ideas on how I need to change this code?
Many thanks