[R] Remove top values from a data set

2014-04-24 Thread Nasrin Pak
Hi all; I have a data set that I want to remove the top values above 90th percentile from it. Any suggestions? Thank you; -- *Nasrin Pak, MSc* Air Quality Scientist [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Remove top values from a data set

2014-04-24 Thread jim holtman
Is this what you want: myData - rnorm(1000) length(myData) [1] 1000 top90 - quantile(myData, prob = 0.9) low90 - myData[myData top90] length(low90) [1] 900 Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to