I am trying to add a column to my data based off of what is contained in a different column within the same data. So just for an example of what i'm looking for:
Column A: "Apple Bees in the right area" "We love Apple Bees here" "Waffle House: the place to go! 5 stars" "Nothing better than Waffle House!"
Note: Column A has value chr
I want Column F to show: "Apple Bees" "Apple Bees" "Waffle House" "Waffle House"
I tried mutate, contains, select, %in%, and I kept getting a bunch of errors. I assume I am supposed to use one or more of these within the dplyr package, but I am not getting the results I want. Any suggestions would be appreciated. Thanks!