I want to remove rows with character strings (exact matches) from the second column in a dataframe:
Input:
>data
habitat species
wet species1_ind1
wet species1_ind1
dry species2_ind1
dry species2_ind1
dry species3_ind1
dry species3_ind1
...
Desired output (with row containing species2_ind1 removed):
>new_data
habitat species
wet species1_ind1
wet species1_ind1
dry species3_ind1
dry species3_ind1
...
Ideally I'd like to supply a list of character strings to remove from the dataframe.