center_scale: Centering and scaling vectors or matrices

Description Usage Arguments Value Author(s)

View source: R/center_scale.R

Description

Centering and scaling vectors or matrices

Usage

1
2
center_scale(X, idc = "all", center = T, scale = c("None", "UV",
  "Pareto"))

Arguments

X

Data to be scaled, can be a vector or a matrix with observations in rows variables in columns.

idc

Indices of samples in X used to derive center/scale parameters (relevant for statistical validation procedures, e.g., scaling X with training set samples). If set to all, no selection is performed.

center

Logical indicating if data should be mean centered.

scale

Scaling method that should be applied: none, unit variance (UV) or pareto scaling.

Value

Centred/scaled data of the same dimensions than input.

Author(s)

Torben Kimhofer tkimhofer@gmail.com


kimsche/MetaboMate documentation built on Aug. 8, 2020, 1:14 a.m.