enve.truncate {enveomics.R}R Documentation

Enveomics: Truncate

Description

Removes the n highest and lowest values from a vector, and applies summary function. The value of n is determined such that the central range is used, corresponding to the f fraction of values.

Usage

enve.truncate(x, f = 0.95, FUN = mean)

Arguments

x

A vector of numbers.

f

The fraction of values to retain.

FUN

Summary function to apply to the vectors. To obtain the truncated vector itself, use c.

Value

Returns the summary (FUN) of the truncated vector.

Author(s)

Luis M. Rodriguez-R [aut, cre]


[Package enveomics.R version 1.9.1 Index]