preProcess: Perform matrix pre-processing

View source: R/preProcess.R

preProcessR Documentation

Perform matrix pre-processing

Description

Perform matrix pre-processing

Usage

preProcess(
  X,
  offset = 0,
  zeroOffset = 0,
  trans = "none",
  center = "none",
  scale = "none"
)

Arguments

X

Data matrix with samples in rows and variables in columns

offset

Add offset to all data points (defaults to 0)

zeroOffset

Add offset to zero data (defaults to 0)

trans

Either 'log', 'sqrt' or 'none' (default is 'none')

center

Either 'mean', 'none' or a numeric vector of length equal to the number of columns of X (defaults to 'none').

scale

Either 'UV', 'Pareto', 'none' or a numeric vector of length equal to the number of columns of X (defaults to 'none').

Value

A pre-processed data matrix

Examples

data("freelive2")
preProcess(XRVIP2)

MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.