I would like to know how to replace strings based on different conditions then group them together with dplyr in a dataset.
For example,
The reason I treat FRAUD and NARC differently is that I think there is a difference between NARC-SELL and NARC-POSSES (the kinds of drugs that are involved are not important).
Thanks for the help!