Skip to content
Prev 30996 / 398513 Next

converting to factor

?cut

#E.g.,
cut(c(2.5, 1.6, 3.2),c(-Inf,3,Inf))
#[1] (-Inf,3] (-Inf,3] (3,Inf]

See also the "labels" option of cut().

HTH,
J.
On April 22, 2003 02:14 pm, R. Sean Bowman wrote: