exponentiate log2 values with directionality
Arguments
- x
numericvector- offset
numericsubtracted from exponentiated values prior to multiplying by thesign(x).- base
numericvalue indicating the logarithmic base used. For examplebase=2indicates values were transformed usinglog2().- ...
additional arguments are ignored.
Details
This function is the reciprocal to log2signed().
It #' exponentiates the absolute values of x,
then subtracts the offset, then multiplies results
by the sign(x).
The offset is typically used to maintain
directionality of values during log transformation by
requiring all absolute values to be 1 or larger, thus
by default offset=1.
See also
Other jam practical functions:
breakDensity(),
call_fn_ellipsis(),
checkLightMode(),
check_pkg_installed(),
colNum2excelName(),
color_dither(),
getAxisLabel(),
isFALSEV(),
isTRUEV(),
jargs(),
kable_coloring(),
lldf(),
log2signed(),
middle(),
minorLogTicks(),
newestFile(),
printDebug(),
reload_rmarkdown_cache(),
renameColumn(),
rmInfinite(),
rmNA(),
rmNAs(),
rmNULL(),
setPrompt()
Examples
x <- c(-100:100)/10;
z <- log2signed(x);
#plot(x=x, y=z, xlab="x", ylab="log2signed(x)")
plot(x=x, y=exp2signed(z), xlab="x", ylab="exp2signed(log2signed(x))")
plot(x=z, y=exp2signed(z), xlab="log2signed(x)", ylab="exp2signed(log2signed(x))")