title: How to use Aggregate function in R
body: <p>can you help me please how to properly use aggregate function in R?
  I have data like this:</p>
  
  <pre><code>SPORT   FLOWS
  [1,] "Other" "1"  
  [2,] "Other" "1"  
  [3,] "Other" "1"  
  [4,] "Other" "1"  
  [5,] "Other2" "1"  
  [6,] "Other2" "1"
  </code></pre>
  
  <p>And I need to get this:</p>
  
  <pre><code>SPORT   FLOWS
  [1,] "Other" "4"
  [2,] "Other2" "2"
  </code></pre>
  
  <p>I found, that it can be done with aggregate function, but it doesn't work..</p>
  
  <p>Thank you guys.. I have marked answer which worked for me..</p>