i have this data frame:
ers1 task
t1 3 t1
t2 3 t2
t3 3 t3
t4 4 t4
t5 3 t5
t6 4 t6
t7 4 t7
t8 3 t8
The data describes the task distribution (8 different tasks) for a group of employees. i would like to aggregate the tasks for a given employee, in order to get something like this:
ers task1 task2 task3 task4 task5
3 t1 t2 t3 t5 t8
4 t4 t6 t7
Any suggestion? Thanks