I have data like this:
data.frame(text1 = c("Amazon", "Google", "other"))
Add I would like to replace whatever is in the list with a specific value
mylist <- c("Amazon", "Google")
replace what is in the mylist with stock value
Expected output:
data.frame(text1 = c("stock", "stock", "other"))