count_below_percentile: Count number of groups with measurements below percentile per...

Description Usage Arguments Value

Description

Count number of groups with measurements below percentile per sample

Usage

1
count_below_percentile(mat, by, f, percentile, ...)

Arguments

mat

Matrix with samples as columns and metabolites as rows

by

Factor of length nrow(mat) used to group rows

f

Function to "condense" the measurements of a sample for a given group of rows to a single number (mean, median, min, etc.)

percentile

A number between 0 and 100.

...

Passed on to f

Value

A integer vector with colnames(mat) as names containing the number of categories, that is the levels of by, for which a sample has measurements (as "condensed" by f) below percentile. The percentiles are computed separately for every metabolite over the "condensed" metabolite measurements of all samples.


cbhelmholtz/metaboliteqc documentation built on May 13, 2019, 2:03 p.m.