log2_foldchange: Calculate log2 foldchange

Description Usage Arguments Details

Description

'log2_foldchange' calculates the log2 foldchange for two groups of a given data frame.

Usage

1
log2_foldchange(input_df, group_vector, control_group, test_group)

Arguments

input_df

data frame. Contains at least one numeric variable.

group_vector

vector. Vctor containing the grouping variabe. group_vector = input_df$group (or any vector of length nrow(input_df))

control_group

string. Name of control group.

test_group

string. Name of test group.

Details

This function takes a data frame and a grouping vector and calculates the log2 foldchange between two groups. The results are returned in a new data frame.


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