Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

Selecting Elements by Frequency

Dan Madrigal
Organization: Wolfram Research, Inc.

This function allows the selection of all elements which occur with frequency n in a list. You can choose to get all of the elements or a list containing one of each value which occurs with frequency n. The function takes the option ReducedList which is by default set to True. Setting it to False will give each element n times. The default value for n is one.

*Wolfram Technology > Kernel > Data Structures
Downloads Download Wolfram CDF Player

ElemCount.nb (7.7 KB) - Mathematica Notebook