mode of a data set
Erin Hodgess wrote:
Dear R People: Is there a function to find the mode of a data set, please? This is the mode as in the value(s) which occur most often.
Erin, Will this work for you? R> x <- rbinom(100, size = 20, prob = .2) R> table.x <- table(x) R> table.x[which.max(table.x)] 4 23 R> Regards, Sundar