| pareto_scale | R Documentation |
This function performs Pareto scaling on a numeric matrix or data frame. Pareto scaling scales each variable (column) by dividing it by the square root of its standard deviation.
pareto_scale(x, drop_na = FALSE, drop.na = deprecated())
x |
A numeric matrix or data frame to be scaled. |
drop_na |
A logical value indicating whether to ignore missing values
(NA) when computing the standard deviations. Default is |
drop.na |
A numeric matrix (or a tibble if x is a data frame) with the same
dimensions as x, but with each variable scaled by the square root of its
standard deviation.
Christian L. Goueguel
data(forageLIBS)
spectra <- forageLIBS[-(1:14)] # the spectral channels
pareto_scale(spectra)[1:3, 1:4]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.