scale_dataset: Scaling of a data set

View source: R/deepScaling.r

scale_datasetR Documentation

Scaling of a data set

Description

Scaling of a data set

Usage

scale_dataset(
  dataset,
  columns = NULL,
  type = c("minmax", "zscore", "log", "center"),
  invert = FALSE,
  ...
)

Arguments

dataset

A data set, usually a matrix or data frame.

columns

The names or indices of the columns to be scaled. If NULL (default), all columns are used.

type

Type of scaling with supported techniques min-max scaling (minmax), z-score scaling (zscore), log transformation (log) and centering center.

invert

A logical value indicating the direction of scaling. If set to TRUE, columns are already scaled vectors and scaling will be inverted.

...

Further arguments depend on the type of scaling. Min-max scaling, z-score scaling and centering need two or one further arguments if necessary.

Value

The scaled dataset.

See Also

scaling

Other Scaling: scale_center(), scale_log(), scale_minmax(), scale_train_test(), scale_zscore(), scaling()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.