title: R: How to use intervals as input data for histograms?
body: <p>I would like to import the data into R as intervals, then I would like to count all the numbers falling within these intervals and draw a histogram from this counts.</p>
  
  <p>Example:</p>
  
  <pre><code>start end freq
  1 8 3
  5 10 2
  7 11 5
  .
  .
  .
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>number freq
  1 3
  2 3
  3 3
  4 3
  5 5
  6 5
  7 10
  8 10
  9 7
  10 7
  11 5
  </code></pre>
  
  <p>Some suggestions?</p>
  
  <p>Thank you very much!</p>