Description Usage Arguments Examples
View source: R/calc_log2_vec.R
Reads a numeric element or a vector and returns its log2 value. Output is numeric.
Missing values will be replaced with 0. You can use convert_to_vec
or convert_to_df
to convert 0 back to NA.
1 |
x |
Numeric element or vector for which the log2 value will be calculated. |
1 2 3 | x <- seq(from = 100, to = 1000, by = 100)
x
calc_log2_vec(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.