I want to delete rows in the column "Keyword" which contains words including "advertising", "advertise", and "advertisement".
The data frame looks like this:
I want to delete rows in the column "Keyword" which contains words including "advertising", "advertise", and "advertisement".
The data frame looks like this:
We can use grep
df2 <- df1[grep("\\badvert.*", df1$Keyword, invert=TRUE),]
If the three words are specific, as @Frank suggested, the pattern can be replaced by "\\badvertis(ement|ing|e)\\b"