nanmean4: Mean of the n highest values of a vector.

View source: R/nanmean4.R

nanmean4R Documentation

Mean of the n highest values of a vector.

Description

Estimates the mean of the n% highest values in vector x.

Usage

nanmean4(x, n)

Arguments

x

a vector with the values to average

n

an integer corresponding to the percentage of values to use

Value

mean of the n% highest values in vector x


specieschrom documentation built on Oct. 17, 2022, 5:11 p.m.