[R] Testing for Inequality à la "select case"

Stavros Macrakis macrakis at alum.mit.edu
Mon Mar 16 02:58:29 CET 2009

Using cut/split seems like gross overkill here.  Among other things,
you don't need to generate labels for all the different ranges.


seems straightforward enough to me, but you could also use the
built-in function findInterval.


More information about the R-help mailing list