Is there a way to loop/iterate a series of str_extract calls in R?
I feel like there should be an easy way to do this but I’ve hit a dead end. I have a large text dataset, and I want to know which countries are mentioned in each document. Sometimes it will say "afghanistan", sometimes "afghan", but since those are referring to the same country I want to… Read More Is there a way to loop/iterate a series of str_extract calls in R?