I am studying use R and stringr. Let's say I have a string:
a <- 'fda afe faref a about fae faef across afef absolute fgprg'
I have a data frame which includes some words that I want to remove from a:
b <- tibble(words=c('a','about','across'))
In my data, there are probably a lot of words in b. Here is just an example.
I want to remove all the words in b from a using R, stringr or other functions if there is better. I hope the result would be:
'fda afe faref fae faef afef absolute fgprg'