PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
List Manipulation
>
Math & Counting Operations on Lists
>
Mathematica
>
Data Manipulation
>
Handling Arrays of Data
>
Math & Counting Operations on Lists
>
Built-in
Mathematica
Symbol
Tally
Median
Mean
Split
CommonestFilter
See Also »
|
Exploratory Data Analysis
Descriptive Statistics
Discrete & Integer Data
Math & Counting Operations on Lists
New in 6.0: Data Handling & Data Sources
New in 6.0: List Manipulation
New in 6.0: Numerical Data Handling
New in 6.0: Statistics
More About »
Commonest
Commonest
[
list
]
gives a list of the elements that are the most common in
list
.
Commonest
[
list
,
n
]
gives a list of the
n
most common elements in
list
.
MORE INFORMATION
When several elements occur with equal frequency,
Commonest
[
list
,
...
]
picks first the ones that occur first in
list
.
Commonest
[
list
,
n
]
returns the
n
commonest elements in the order they appear in
list
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Obtain the elements with the highest frequency:
In[1]:=
Out[1]=
Obtain the 4 most common elements:
In[1]:=
Out[1]=
Scope
(1)
Applications
(1)
Properties & Relations
(1)
Possible Issues
(1)
SEE ALSO
Tally
Median
Mean
Split
CommonestFilter
MORE ABOUT
Exploratory Data Analysis
Descriptive Statistics
Discrete & Integer Data
Math & Counting Operations on Lists
New in 6.0: Data Handling & Data Sources
New in 6.0: List Manipulation
New in 6.0: Numerical Data Handling
New in 6.0: Statistics
RELATED LINKS
Demonstrations with Commonest
(
Wolfram Demonstrations Project
)
New in 6