I would like to create a table that assigns a column to each value of one column.
The data looks like this:
Person Task
John 4
Michael 1
Florence 3
Expected result:
Person Task 1 2 3 4 5 6 7 8
John 4 1 1 1 1 0 0 0 0
Michael 1 0 0 0 0 1 0 0 0
Florence 3 0 0 0 0 0 1 1 1
It's important that the column values are filled in an orderly manner. The first row, then the second and so on.
Thanks!