pipe_scaler: Rescales data to standardised ranges

Description Usage Arguments Value

Description

Rescales data to standardised ranges

Usage

1
2
pipe_scaler(train, exclude_columns = character(length = 0),
  type = "[0-1]", retransform_columns)

Arguments

train

The train dataset, as a data.frame or data.table. Data.tables may be changed by reference.

exclude_columns

Names of columns that should be excluded from rescaling

type

Type of rescales to perform:

  • "[0-1]": rescales the columns to the [0-1] range

  • "N(0,1)": rescales the columns to mean 0 and sd 1

retransform_columns

Columns that should be rescaled later on. A new pipe will be created and returned as a separate list entry.

Value

A list containing the transformed train dataset and a trained pipe. If retransform_columns was set, the reverting pipe will also be provided.


jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.