preprocess: Center and scale your data

preprocessR Documentation

Center and scale your data

Description

With this function you can center and scale your data.

Usage

preprocess(
  data,
  center = TRUE,
  scale = c("none", "uv", "pareto"),
  simple = TRUE
)

Arguments

data

matrix to preprocess

center

center the data (default is TRUE)

scale

which scaling to use c("none", "uv", "pareto")

simple

only return the preprocessed matrix. If false also the original data will be returned as a list. Default is true.

Value

The centered and scaled matrix will be returned if simple is true. If simple is false also the center and scale vectors are returned.

Author(s)

Rico Derks


ricoderks/Rcpm documentation built on May 18, 2022, 7:49 a.m.