preProcess: Perform matrix pre-processing
Description
Perform matrix pre-processing
Usage
preProcess(
X,
offset = 0,
zeroOffset = 0,
trans = "none",
center = "none",
scale = "none"
)
Value
A pre-processed data matrix
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').
Examples
Run this codedata("freelive2")
preProcess(XRVIP2)
Run the code above in your browser using DataLab