I have a dataframe with two columns:
Surname Email 1 house greghouse@gmail.com 2 wilson johnwatson@gmail.com
I want to cre
Try with library("stringi") and:
library("stringi")
df1$CheckEmail <- stri_detect_fixed(df1$Email, df1$Surname)