I have a question regarding to R and changing strings. I want for the column taste, that every row has only one name and that duplicates are removed. Then I also want the sweets of duplicated tastes merged.I included before and after pictures as well. How can I change that not manually but with something like aggregate or splitstring? The before and after pictures show how it should look like.
taste=c("Smarties, Strawberry","Smarties")
sweets=c("IceCream","Chocolate")
Dessert=data.frame(taste,sweets)
Before:

After:
