title: how to do looping in R
body: <p>Hey guys i want to do looping in R ; can anybody help me out</p>
  
  <p>For eg i have sum of points and i want no of empid in 0-10 % of sum of points and so on ;how to do in R</p>
  
  <p>For eg I have data as</p>
  
  <pre><code>empid               sumofpoints
    1                       10
    2                       30 
  </code></pre>
  
  <p>I want data as </p>
  
  <pre><code>percentageofsumpoints       countofempid
     0-10                        4
    11-20                        5
    21-30                        6
  </code></pre>
  
  <p>and so on....
  How to do it in R ,do i have to install any package for it</p>