I am new to R and I have a data frame with multiple duplicates in the first column, however the second column has unique values.
I want to keep the unique values in the first column and have a different column for each unique value.
My current data frame looks something like this:
Item Value
Apricot 4
Apricot 2
Apricot 5
Banana 4
Carrot 7
Carrot 5
and I want it to look like this:
Item Value 1 Value 2 Value 3
Apricot 4 2 5
Banana 4
Carrot 7 5
Thanks in advance. Fojjit