Learn R Programming

mdatools (version 0.9.1)

prep.autoscale: Autoscale values

Description

Autoscale (mean center and standardize) values in columns of data matrix.

Usage

prep.autoscale(data, center = T, scale = F, max.cov = 0.1)

Arguments

data

a matrix with data values

center

a logical value or vector with numbers for centering

scale

a logical value or vector with numbers for weighting

max.cov

columns that have coefficient of variation (in percent) below `max.cv` will not be scaled

Value

data matrix with processed values