I would like to exclude lines containing a string \"REVERSE\", but my lines do not match exactly with the word, just contain it.
My input data frame:
Actually I would use:
df[ grep("REVERSE", df$Name, invert = TRUE) , ]
This will avoid deleting all of the records if the desired search word is not contained in any of the rows.