Learn R Programming

asbio (version 1.9-7)

trim.me: Trim data

Description

Trims observations above and below the central \((1 - 2\lambda\)) part of an an ordered vector of data.

Usage

trim.me(Y, trim = 0.2)

Value

Returns a trimmed data vector.

Arguments

Y

A vector of quantitative data.

trim

Proportion (0-1) to be trimmed from each tail of an ordered version of Y.

Author

Ken Aho

Examples

Run this code
x<-c(2,1,4,5,6,2.4,7,2.2,.002,15,17,.001)
trim.me(x)

Run the code above in your browser using DataLab