I have a dataset of, say, 150 countries from which I would like to select records of, for instance, 50 countries that I already have a vector of. How can I filter needed countries? It's troubling to repetitively use |
like:
filter(mydata, country == "A" | country == "B")
Recommendation much appreciated.