I am using R and I have a dataframe that looks like this:
Van | Route | Price | Tickets Sold | Revenue |
---|---|---|---|---|
U67 | 12333 | 30.00 | 11 | 330.00 |
U67 | 12333 | 25.00 | 5 | 125.00 |
U67 | 12333 | 20.00 | 10 | 200.00 |
U69 | 65111 | 30.00 | 15 | 450.00 |
U69 | 65111 | 25.00 | 8 | 200.00 |
U69 | 65111 | 20.00 | 11 | 220.00 |
and the data frame is very very big... but basically it looks like that
I would like to have a new dataframe that looks like this:
Van | Route | Price | Tickets Sold | Revenue |
---|---|---|---|---|
U67 | 12333 | 30.00, 25.00, 20.00 | 26 | 655.00 |
U69 | 65111 | 30.00, 25.00, 20.00 | 34 | 870.00 |
Thanks in advance guys!!! :)