Skip to content
Prev 75675 / 398502 Next

recategorizing a vector into discrete states

On Tue, 2005-08-16 at 13:18 -0400, Allan Strand wrote:
See ?cut
[1] 0 8 0 2 4 4 6 8 2 4
Levels: 0 2 4 6 8

Note that cut() returns a factor.

HTH,

Marc Schwartz