Learn R Programming

dataPreparation (version 0.4.3)

build_scales: Compute scales

Description

Build a list of means and standard deviation for each cols.

Usage

build_scales(dataSet, cols = "auto", verbose = TRUE)

Arguments

dataSet

Matrix, data.frame or data.table

cols

List of numeric column(s) name(s) of dataSet 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

Run this code
# NOT RUN {
# Get a data set
data(adult)
scales <- build_scales(adult, cols = "auto", verbose = TRUE)

print(scales)
# }

Run the code above in your browser using DataLab