Row to column for frequency in R : <p>I have a data frame which looks like this</p>

<pre><code>&gt; initial
  Name Status
1    a    Win
2    b    Win
3    c   Loss
</code></pre>

<p>From here I want a data frame which looks like this</p>

<pre><code>&gt; final
  Name Win Loss
1    a   1    0
2    b   1    0
3    c   0    1
</code></pre>

<p>How can I achieve this</p>
