break a vector into classes
wouter at paramo.be
wouter at paramo.be
Mon Mar 6 15:06:43 CET 2006
Hi,
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...
cheers
wouter
More information about the R-help
mailing list