[R] Remove top-K elements in Vector

Gundala Viswanath gundalav at gmail.com
Wed Feb 18 09:20:24 CET 2009


Hi all,

Suppose I hve this vector:

> x
 [1]  3  4  7 17 22 12 15 12  3  3  1  1

How can I remove the top-3 element.
Yielding only:
[1]  17 22 12 15 12  3  3  1  1

- Gundala Viswanath
Jakarta - Indonesia




More information about the R-help mailing list