Remove columns that contain a specific word
问题 I have a data set that has 313 columns, ~52000 rows of information. I need to remove each column that contains the word "PERMISSIONS". I've tried grep and dplyr but I can't seem to get it to work. I've read the file in, testSet <- read.csv("/Users/.../data.csv") Other examples show how to remove columns by name but I don't know how to handle wildcards. Not quite sure where to go from here. 回答1: From what I could understand from the question, the OP has a data frame like this: df <- read.table