I have a dataframe that looks like the below:
B0022HOME_NO Device_Detail
1 1043036 Laptop/Netbook
2 1043036 Tablet
3 3753259 Laptop/Netbook
4 3753259 Laptop/Netbook
5 3753259 Tablet
6 3753259 Tablet
What I want to get t is something like this, in which I have a single row for every unique B0022HOME_NO
value, containing all Device_Detail
listings.
B0022HOME_NO Device_Detail1 Device_Detail2 Device_Detail3 Device_Detail4
1 1043036 Laptop/Netbook Tablet
2 3753259 Laptop/Netbook Laptop/Netbook Tablet Tablet
I am quite new to Dplyr (and R) so have been trying to use the gather
function, but to no avail.