build_scales {dataPreparation} | R Documentation |
Compute scales
Description
Build a list of means and standard deviation for each cols
.
Usage
build_scales(data_set, cols = "auto", verbose = TRUE)
Arguments
data_set |
Matrix, data.frame or data.table |
cols |
List of numeric column(s) name(s) of data_set to transform. To transform all characters, set it to "auto". (character, default to "auto") |
verbose |
Should the algorithm talk? (Logical, default to TRUE) |
Value
A list where each element name is a column name of data set and each element contains means and sd.
Examples
# Get a data set
data(adult)
scales <- build_scales(adult, cols = "auto", verbose = TRUE)
print(scales)
[Package dataPreparation version 1.1.1 Index]