Raw Message
Message-ID: <3EF7249E.3050303@pdf.com> Date: 2003-06-23T16:02:38Z From: Sundar Dorai-Raj Subject: 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