scaling: Scaling of a numeric object

View source: R/deepScaling.r

scalingR Documentation

Scaling of a numeric object

Description

Scaling of a numeric object

Usage

scaling(
  x,
  type = c("minmax", "zscore", "log", "center"),
  use_attr = TRUE,
  invert = FALSE,
  ...
)

Arguments

x

A numeric object whose elements should be scaled.

type

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

use_attr

A logical value indicating whether scaling factors like min, max, mean and sd are stored as named attributes of the scaled x.

invert

A logical value indicating the direction of scaling. If set to TRUE, x is already scaled 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 or re-scaled (inverted) x.

See Also

scale_minmax, scale_zscore, scale_log, scale_center.

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


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