> x <- rnorm(100) > xx <- cut(x,3) > levels(xx) [1] "(-2.37,-0.716]" "(-0.716,0.933]" "(0.933,2.58]" > as.numeric(xx)
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html