[R] break a vector into classes

Jacques VESLOT jacques.veslot at cirad.fr
Mon Mar 6 15:11:18 CET 2006


wouter at paramo.be a écrit :

>I'm looking for a function which divides a vector into n classes and 
>returns the breaks as well as the number of values in each class.
>This is actually what hist(vector, breaks=n) does, but in hist() n is a 
>suggestion only, and is a suggestion only and cannot be enforced (as 
>far as I know...)
>It is not so difficult to do it yourself, but a ready made function would 
>be nice...
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list