scale2: Scale a dataframe or matrix
Description
Similar to 'base::scale' but scales / centers only numeric values
in data.
Usage
scale2(x, center = TRUE, scale = TRUE)
Value
An object of same class as x
Arguments
- x
dataframe or matrix
- center
Logical, should data be centered.
- scale
Logical, should data be scaled.