azadag
5/4/2020 - 12:34 AM

check whether a value matches a list of values

condition <- df$col1 %in% c("Bob" , "Tom" , "Dick" , "Harry")
df$col2[condition] <- "Boy's name"
# if there's a match fill using X