title: Binning a numeric variable
body: <p>I have a vector X that contains positive numbers that I want to bin/discretize.  For this vector, I want the numbers [0, 10) to show up just as they exist in the vector, but numbers [10,&infin;)  to be 10+.  </p>
  
  <p>I'm using:</p>
  
  <pre><code>x &lt;- c(0,1,3,4,2,4,2,5,43,432,34,2,34,2,342,3,4,2)
  binned.x &lt;- as.factor(ifelse(x &gt; 10,"10+",x))
  </code></pre>
  
  <p>but this feels klugey to me.  Does anyone know a better solution or a different approach?</p>