title: Create ranges by accumulating values
body: <p>I have the <code>DF1</code>:</p>
  
  <pre><code>KEY &lt;- c(11,12,22,33,44,55,66,77,88,99,1010,1111,1212,1313,1414,1515,1616,1717,1818,1919,2020)
  PRICE &lt;- c(0,0,1,5,7,10,20,80,110,111,200,1000,2500,2799,3215,4999,7896,8968,58914,78422,96352)
  DF1 &lt;- data.frame(KEY,PRICE)
  </code></pre>
  
  <p>I want to group <code>DF1</code> into ranges, accumulating the values of the two columns (count the KEY column and sum the PRICE column). This is the result I hope for:</p>
  
  <pre><code>INTERVAL &lt;-c('0','UP_TO_10','UP_TO_100','UP_TO_1000','UP_TO_5000','UP_TO_10000','UP_TO_100000')
  COUNT_KEY &lt;-c(2,6,8,12,16,18,21)
  SUM_PRICE &lt;- c(0,23,123,1544,15057,31921,265609)
  DF2 &lt;- data.frame(INTERVAL,COUNT_KEY,SUM_PRICE)
  </code></pre>
  
  <p>How do I make this table?</p>