[R] vector of center of

Fred Jean Frederic.Jean at univ-brest.fr
Mon Nov 18 14:21:31 CET 2002


I have a vector gd of 279 values of diameter of limpets.

Using 'hist(gd, breaks=seq(10,60,5),plot=F)' I can obtain a vector of 
10 centers of size-class ($mids).

But I'd like to work on a vector of 279 values being the mids (centers
of size-classes) corresponding to the respective 279 values in gd.

I looked in the different manuals and in archives of list but didn't find how
to obtain such a vector... I looked around in the manual of functions such as
levels, density, ... but didn't find a simple solution, which may exists I

thanks so much for taking time to answer this (naive/newbie) question.


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list