scaledf: Center or standardize variables in a data frame

Description Usage Arguments Value See Also

View source: R/nn.R

Description

Center or standardize variables in a data frame

Usage

1
2
scaledf(dataset, center = TRUE, scale = TRUE, sf = 2, wts = NULL,
  calc = TRUE)

Arguments

dataset

Data frame

center

Center data (TRUE or FALSE)

scale

Scale data (TRUE or FALSE)

sf

Scaling factor (default is 2)

wts

Weights to use (default is NULL for no weights)

calc

Calculate mean and sd or use attributes attached to dat

Value

Scaled data frame

See Also

copy_attr to copy attributes from a training to a validation dataset


radiant-rstats/radiant.model documentation built on Nov. 13, 2018, 7 a.m.