R/trim.me.R

Defines functions trim.me

Documented in trim.me

trim.me<-function(Y,trim=.2){
n.i<-length(Y)
Y1<-sort(Y)
bot<-floor(n.i*trim)+1
top<-n.i-bot+1
Y2<-Y1[bot:top]
Y2
}

Try the asbio package in your browser

Any scripts or data that you put into this service are public.

asbio documentation built on Aug. 20, 2023, 9:07 a.m.