Unable to update values in a column based on pattern match of another column in a dataframe in R

Not sure about that. It would help if you could post a self-contained reproducible example with a subset of your data.