build_scales: Compute scales

View source: R/scale.R

build_scalesR 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)

dataPreparation documentation built on July 9, 2023, 7:02 p.m.