I have a dataset like the following:
FirstName Letter
Alexsmith A1
ThegreatAlex A6
AlexBobJones1 A7
Bobsmiles222 A1
Christopher A9
Christofer A6
I want to remove all rows that contain, for example "Alex" (or "alex", "aLex" etc.), anywhere in the FirstName value. I have tried using grep("Alex") but have stumbled on combining my dplyr with base R, and grep seems to want a vector not a data table.
Thanks! Happy to clarify any questions.