sum_top_n: sum_top_n

View source: R/fswe.com.r

sum_top_nR Documentation

sum_top_n

Description

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

Usage

sum_top_n(values, n, minimum = 1)

Arguments

values

the vector with the values.

n

number of top N values to be summed.

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.