calc_log2_vec: Calculate log2 from a vector

Description Usage Arguments Examples

View source: R/calc_log2_vec.R

Description

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.

Usage

1

Arguments

x

Numeric element or vector for which the log2 value will be calculated.

Examples

1
2
3
x <- seq(from = 100, to = 1000, by = 100)
x
calc_log2_vec(x)

tkostas/komics documentation built on May 24, 2019, 7:31 a.m.