I have a dataframe similar to below,
Name | ID | SET | COUNT |
------ | ------ |------ | ------ |
Value | 44000001005 | 0 | 24 |
Value | 10000000019659 | 0 | 29 |
Value | 10000000019659 | 1 | 5 |
The result that I need is something like,
Name | ID | 0 | 1 |
------ | ------ |------ | ------ |
Value | 44000001005 | 24 | 0 |
Value | 10000000019659 | 29 | 5 |
Can this be done or would I have to re-work the data set? I am relatively new to R, so I may have missed some very obvious logic, but would appreciate if anyone could guide me. Thank you.