[R] Finding Values that Occur Most Often in a Vector

Gundala Viswanath gundalav at gmail.com
Thu Jul 10 08:04:25 CEST 2008


Hi,

Is there a way to do it?

For example I have the following vector:

> print(myvector)
> [1] -295.8045 -295.8045 -295.8045 -295.8045 -325.4754 -295.8045 -295.8045
 [8] -295.8045 -413.2099 -295.8045

I want it to return -295.8045, which occur most often.

- Gundala Viswanath
Jakarta - Indonesia



More information about the R-help mailing list