title: R - cut function with custom labels?
body: <p>Example:</p>
  <pre><code>&gt; x &lt;- c(1e6,2e6,500e3,10e6,233e3,50e3)
  &gt; cut(x,c(0,250e3,500e3,1e6,2.5e6,99e6),dig.lab=10)
  [1] (500000,1000000]   (1000000,2500000]  (250000,500000]    (2500000,99000000] (0,250000]        
  [6] (0,250000]        
  Levels: (0,250000] (250000,500000] (500000,1000000] (1000000,2500000] (2500000,99000000]
  </code></pre>
  <p>Is there a way I can use the cut function with custom labels? I would like it to show labels such as: <code>(0,250k],(250k,500k],(500k,1m],(1m,2.5m],(2.5m,inf]</code></p>
  <p>Is there a way to do this?</p>