title: divide a range of values in bins of equal length: cut vs cut2
body: <p>I'm using the cut function to split my data in equal bins, it does the job but I'm not happy with the way it returns the values. What I need is the center of the bin not the upper and lower ends.<br>
  I've also tried to use <a href="http://www.inside-r.org/packages/cran/Hmisc/docs/cut2"><code>cut2{Hmisc}</code></a>, this gives me the center of each bins, but it divides the range of data in bins that contains the same numbers of observations, rather than being of the same length.  </p>
  
  <p>Does anyone have a solution to this?</p>