Skip to content
Prev 168328 / 398502 Next

Odp: working with tables -- was Re: Mode (statistics) in R?

Hi

r-help-bounces at r-project.org napsal dne 27.01.2009 01:50:39:
Do you mean the situation when there are more then one max values?

set.seed(19)
sample(seq(1,10),50,replace=TRUE)->bag
table(bag)[max(table(bag))==table(bag)]

Regards
Petr
http://www.R-project.org/posting-guide.html