I have one question. I have one date base with two variables in two columns, the brand and the price. For example: 2 brands and their prices
BRAND PRICE
A 10.5
A 11.5
A 12.5
B 9.8
B 9.5
And there are more brands and prices.
I'd like to transform the data and put in each row the brand without duplicates and the prices in one column but all together as factor and separated by commas
It was this way:
BRAND PRICE
A {10.5,11.5,12.5}
B {9.8,9.5}
Could someone help me with this?
Thank you
Below one example the data original