I want to subset my data frame to contain all elements that contain the word 'inhibitor'. I want to keep the entire element. For example, I'd have a new data frame with: 342 RENIN INHIBITORS, 342 RENIN INHIBITORS, 216 ALPHA-GLUCOSIDASE INHIBITORS, etc.
This doesn't work
library(dplyr)
TC1S1 = read.csv('https://raw.githubusercontent.com/bandcar/Examples/main/TC1S1.csv')
x <- TC1S1 %>% filter(grepl('inhibitor', TC1S1[,1]))