Re: [R] Remove top-K elements in Vector

2009-02-18 Thread ONKELINX, Thierry
Have a look at ?tail tail(x, -3) should do the trick. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg

Re: [R] Remove top-K elements in Vector

2009-02-18 Thread Dimitris Rizopoulos
try this: x[-(1:3)] # or tail(x, -3) Best, Dimitris Gundala Viswanath wrote: 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 ___