pareto_scale: Pareto Scaling

View source: R/pareto_scale.R

pareto_scaleR Documentation

Pareto Scaling

Description

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.

Usage

pareto_scale(x, drop_na = FALSE, drop.na = deprecated())

Arguments

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 FALSE.

drop.na

[Deprecated] Use drop_na.

Value

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.

Author(s)

Christian L. Goueguel

Examples

data(forageLIBS)
spectra <- forageLIBS[-(1:14)]  # the spectral channels
pareto_scale(spectra)[1:3, 1:4]

specProc documentation built on Nov. 20, 2026, 5:11 p.m.