I have data containing emailaddress and states, and I want to create a column labelling the region each state is in. In SQL, I've done this through case statements, but in R what's the best way? I'm defining regions by the US census (as of 2017). I have data containing emailaddress and states,