[R] most frequent value

Ragia Ibrahim
Sun, 14 Jun 2015 23:04:47 -0000

Dear group,
I have the following integer object

> a

3 4 6
3 3 6

how to get the most frequent value (it should be 3)

and get nothing if no frequent one and all is equal

3 4 6
3 4 6
Thanks in advance
Ragia

	[[alternative HTML version deleted]]