Description Usage Arguments Details
'log2_foldchange' calculates the log2 foldchange for two groups of a given data frame.
1 | log2_foldchange(input_df, group_vector, control_group, test_group)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.