I am trying to use grep to test whether a vector of strings are present in an another vector or not, and to output the values that are present (the matching pat
grep
Take away the spaces. So do:
matches <- unique(grep("A1|A9|A6", myfile$Letter, value=TRUE, fixed=TRUE))