log2_to_ln: convert base-log from log2 to natural log

View source: R/util_generic.R

log2_to_lnR Documentation

convert base-log from log2 to natural log

Description

log_a(x) = log_b(x) / log_b(a)

Usage

log2_to_ln(x)

Arguments

x

numeric values that were log2 transformed

Examples

## Not run: 
  x = 1:4
  cbind(input = x, as_log2 = log2(x), as_ln = log2_to_ln(log2(x)),
  ln_then_undo = exp(log2_to_ln(log2(x))) )

## End(Not run)

ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.