dot-scaleVars: SCALE VARIABLES

.scaleVarsR Documentation

SCALE VARIABLES

Description

Scales variables/columns in init.vars using scale(..., center = FALSE, scale = TRUE) Variables that only have 0s, will be assigned 1e-6

Usage

.scaleVars(datatable, init.vars)

Arguments

datatable

a table object coercible to data.frame

init.vars

is a vector with the variable indices (column numbers) to use. Defaults to NULL and all variables are used - ATTENTION the user should not have more than 8 variables unless using an ordination to reduce dimensionality. See Blonder et al 2014.

Value

scaled data.frame


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.