I have a dataframe with two columns:
Surname Email 1 house greghouse@gmail.com 2 wilson johnwatson@gmail.com
I want to cre
Here's a base R option using Vectorize with grepl:
Vectorize
grepl
df1$CheckEmail <- Vectorize(grepl)(df1$Surname, df1$Email)