I have a data frame (DF) like this:
word
1 vet clinic New York
2 super haircut Alabama
3 best deal on dog drugs
4 doggy medicine Texas
5 cat healthcare
6 lizards that don't lie
I am trying to get the resulting data frame (only remove the geo names)
word
1 vet clinic
2 super haircut
3 best deal on dog drugs
4 doggy medicine
5 cat healthcare
6 lizards that don't lie
The following does not keep the remaining words after the geo name has been removed.
vec <- # vector of geo names
DF <-DF[!grepl(vec,DF$word),]