I have a data frame with some full names and a vector with first names:
d <- data.frame(myName = c("Adam Smith","John Smith","John Clarks "))
first <- c("Adam","Mark","Jim")
I need to check if any value from "first" is contained in each row from "d", so the result should look like this:
Adam Smith TRUE
John Smith FALSE
John Clarks FALSE
Could anyone help with this?