Description Usage Arguments Examples
Reads a data-frame and calculates log2 for each value. Non-numeric columns that
should be transformed can be excluded by adding the column name in exclusion vector. For partial
matching of column names use complete_match = FALSE
. Transformed columns can be renamed
using the log_lab
argument. Missing values can be either replaced with 0 or removed by
adjusting the rm_zero
argument.
1 2 |
x |
Dataframe containing only numeric values. |
log_lab |
Character tag to be added in front of every column name of the dataframe (e.g. "Log2_". |
rm_zero |
If |
exclusion |
Vector containing labels from the columns that should be excluded. Even a part of the label is enough. |
complete_match |
Logical with default value |
append |
Logical with default value |
1 | calc_log2_df(x, log_lab = "my_label", rm_zero = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.