[R] find the mode of a dataset

Gil Hauer gil.hauer at sun.com
Fri Dec 24 16:24:28 CET 1999


First, a warning: I'm new to this.

I have a data sample which I am displaying with the hist() command; no
problems there. I would like to find three other pieces of information: the
minimum, the maximum and the sample mode (most frequently occurring data
item). The first two are no problem but the last has me stumped. I tried to
browse the documentation to no avail. Is there anyone who knows how to do

Thanks in advance,

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