standardize | R Documentation |
"exposures"
or "phenotypes"
).
#' @param select Subseting of exposures of phenotypes.
#' @return A basic description of the exposures in the ExposomeSet
#' @examples
#' data("exposome")
#' Summary(expo, set = "exposures")
#' @export Summary
setGeneric("Summary", function(object, set=c("exposures", "phenotypes"),
select)
standardGeneric("Summary")
)
Standardize of an ExposomeSet.Given an ExposomeSet it standardizes the exposures by using mean/sd
if method is "normal"
or by using median/mad if method is
"robust"
.
standardize(object, select, method = "normal", na.rm = TRUE, warnings = TRUE)
object |
|
select |
Subseting of exposures of phenotypes. |
method |
(default |
na.rm |
(by default |
warnings |
(defaulr |
An ExposomeSet
with the selected exposures standardized and
keeping the others exposures as the original input object.
highAndLow to transform the continuous exposures to levelled factors, trans to transform the exposures
data("exposome") exp.sn <- standardize(expo, method = "normal", select = "lbde100_lip") exp.rs <- standardize(expo, method = "iqr", select = "lbde100_lip") exp.rs <- standardize(expo, method = "robust", select = "lbde100_lip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.