Skip to content
Prev 58955 / 398502 Next

Mode in case of discrete or categorial data

If you only care about one, which.max() is great.  However, if you want to
know about all possible ones, which.max() is not the tool:
x
1 2 3 4 5 
5 2 1 5 1
x
1 4 
5 5
1 
5 

Andy