Consider the following column of (random generated) wages
mydata<-runif(2500, min =-500, max = 100000)
mydata<-as.data.frame(mydata)
colnames(mydata)[1]<-"wage"
#How to drop the bottom and top 5%?
(The wages can be negative because of taxes payable). Now I want to drop the 5% lowest wages and the 5% highest wages as I consider these wages as outliers. Is there a way to effectively do this quickly? I looked at the website, but I could not find a link that tells me how to do this.
I appreciate any help.