New to R. I would like to create a test by creating a variable (yes/no) that checks to see if first name OR last name fuzzy match to email address. If so, append a 'yes' variable to that row.
Data Example:
id firstname lastname email address match
1 patrick boyles [email protected] yes
2 zeke cosmos [email protected] yes
3 foo foo [email protected] no
I understand that I need to use agrep. What confuses me is how to tell R to check 2 columns (first name and last name) and only check within that row.
Thanks
-The newbie
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…