trans | R Documentation |
The exposures in an ExposomeSet can be transformed using this
function. transform
apples a function fun
to the selected
exposures.
trans(object, fun, select, by.exposure = FALSE, ...)
object |
|
fun |
Function to be applied on the exposures. |
select |
If not set, receive the name of all exposures. It can takes a character vector to select specific exposures. |
by.exposure |
(default |
... |
Argument given to |
A new ExposomeSet
with selected exposures transformed with
fun
.
highAndLow to transform the continuous exposures to levelled factors, standardize to standardize by normal or robust methods the exposures
data("exposome") exp.t <- trans(expo, fun = log, select = "ldde_lip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.