log2t | R Documentation |
Safe log and log2 calculations where values within [0, thresh) are thresholded to thresh prior to the transformation.
logt(x, thresh = 0.5)
log2t(x, thresh = 0.5)
x |
a numeric or complex vector. |
thresh |
a positive number specifying the threshold. |
For non-negative elements in x
, calculates log(pmax(x, thresh))
or log2(pmax(x, thresh))
.
A vector of the same length as x
containing the transformed values.
Patrick Aboyoun
log
, log2
logt(0:8)
identical(logt(0:8), log(c(0.5, 1:8)))
log2t(0:8)
identical(log2t(0:8), log2(c(0.5, 1:8)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.