avg_top_n: sum_top_n

View source: R/fswe.com.r

avg_top_nR Documentation

sum_top_n

Description

This function averages the values of the top N values of a vector 'values'. It also allows to have a minimum number of values to be averaged. If the minimum of values is not met, it returns NA.

Usage

avg_top_n(values, n, minimum = 1)

Arguments

values

the vector with the values.

n

number of top N values to be averaged.

minimum

minimum number of valid (not NA) values allowed in order to return a value.

Details

This top N approach is INDIVIDUAL, that is, there is no consensus among replicates to choose the top N peptides.


IFIproteomics/LFQbench documentation built on March 2, 2023, 9:45 a.m.