calc_by_replicate: Aggregate function results by factor

Description Usage Arguments Details

View source: R/lipidome_comparison_dataTransformaions.R

Description

'calc_by_replicate' takes a data frame calculates the results of a fuction grouped by a factor

Usage

1
calc_by_replicate(input_df, factor, funct, na_action = na.omit)

Arguments

input_df

a data frame with at least one factor column

factor

a string with the column name to group by

funct

a generic R function, that takes only one argument (e.g. mean(), summary(), etc.)

na_action

function. Indcates what should happen if there are NA values in the data. c(NULL (default), na.omit).

Details

Take a data frame and calculate the results of a fuction grouped by a given factor.


lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.