df.cleaned <- df[-which(str_detect(df, "Not found")),]
"df" refers to a data frame, that consists of multiple columns and rows. A lot of the elements in this data frame have certain character words in them.
What I'm looking to do, is to remove all those values that contain the words "Not found" either as the whole element value, or part of it.
So far, the above command is what I've come up with, with the stringr package. However, this command seems to remove entire rows. I don't want to remove the entire row, I simply want to remove that specific element that contains "Not found".