I have a variable within a dataframe I want to quality control. The variable lists locations (character). I have another dataframe which includes all the alternate names for the same location. I want to get a true/false whether there is a match or not between one variable in my data frame, and all the alternate names in a separate dataframe. Is there a way to do this?
i.e. the variable in my dataframe is called FishingGround that I want to quality control:
FishingGround
Lobster Bay
Deep Cove
Whale Head
Then my other dataframe has all the different possible names for the same location. So I want to create a for loop that goes through each observation in my FishingGround variable and checks whether it matches to one of several listed alternate name.