title: Group data with intervals in R
body: <p>Is there a way to group data and get intervals?
  For example I have a data like this (in reality I have much more longer data):</p>
  
  <pre><code>score        class
  2,100           1
  8,600           3
  2,600           1
  5,200           2
  92,900          7
  10,500          3
  37,500          5
  </code></pre>
  
  <p>So I want to group by class that it would show me intervals from my data, for example:</p>
  
  <pre><code>class interval
  1     0.1-4.3
  2     4.4-7.3 etc
  </code></pre>
  
  <p>Thanks in advance for your help!</p>