I have a vector whose only entries are yes or no. I need to replace each yes with "Institutional" and every no with "Retail".
I have tried for loops, ifelse statements, case_when and replace functions, all to no avail. They all still return the same vector full of yes and no.