scale_minmax: Scaling to a given range.

Description Usage Arguments Details Value

Description

Scales and translates value such that it is in the given range, i.e. between zero and one.

Usage

1
scale_minmax(.data, ..., range = c(0, 1))

Arguments

.data

A tbl.

...

One or more unquoted expressions separated by commas. You can treat variable names like they are positions. It supports [dplyr::select] comparable.

range

Desired range of transformed data.

Details

The transformation is given by: X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0)) x_transformed = (x - min(x))/(max(x) - min(x)) + min(x)

This transformation is often used as an alternative to zero mean, unit variance scaling.

Value

An object of the same class as .data with "preprocessing-chain" attribution.


teramonagi/dpurifyr documentation built on May 29, 2019, 9:52 a.m.