enve.truncate: Enveomics: Truncate

View source: R/utils.R

enve.truncateR 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]


enveomics.R documentation built on April 13, 2022, 5:10 p.m.