I have a data frame which looks like this
> initial
Name Status
1 a Win
2 b Win
3 c Loss
From here I want a data frame which looks like this
> final
Name Win Loss
1 a 1 0
2 b 1 0
3 c 0 1
How can I achieve this