title: Data transformation in R
body: <p>I am looking for an R example for transforming a dataframe.
  I have a dataframe with 100 rows ( 2 rows per US state)</p>
  
  <pre><code>     Status  State Count 
       default    AK   15
       nodefault  AK   71
       default    AL   56
       nodefault  AL  428
       default    AR   33
       nodefault  AR  228
       default    AZ  132
       nodefault  AZ  801
       ......
       ......
  </code></pre>
  
  <p>My desired transformation is a dataframe with 50 rows:</p>
  
  <pre><code>      State Count1  Count2 
          AK   15       71
          AL   56      428
          AR   33      228
          AZ  132      801
         .... 
  </code></pre>
  
  <p>Could you suggest any R function to do this transformation? </p>
  
  <p>I tried to use the 'aggregate'  function. However, it expects a parameter such as: 'mean' OR 'Sum', and I do not want mean or sum.</p>
  
  <p>I appreciate any help you can provide.</p>