Hello, You can try ?table.
Best regards, Carlos J. Gil Bellosta http://www.datanaytics.com On Mon, 2009-01-26 at 05:28 -0800, Jason Rupert wrote: > Hopefully this is a pretty simple question: > > Is there a function in R that calculates the "mode" of a sample? That is, I > would like to be able to determine the value that occurs the most frequently > in a data set. > > I tried the default R "mode" function, but it appears to provide a storage > type or something else. > > I tried the RSeek and some R documentation that I downloaded, but nothing > seems to mention calculating the "mode". > > Thanks again. > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.