I have 2 columns ID and Product:
ID Product
A Clothing
B Food
A Food
A Furniture
C Food
B Clothing
How can I create a dataframe using R where each ID will have the products as comma separated as below:
ID Product
A Clothing, Food, Furniture
B Food, Clothing
C Food, Clothing