scale_feature: Scale a numeric value into a standardized interval [0,1].

Description Usage Arguments Value Examples

Description

This function scales a numeric value into a standardized interval [0,1]. A linear transformation method is used to map values of (-infinity,infinity) to [0,1]. As input for x, min, max is only required an numeric value. Otherwise the function returns an error message.

Usage

1

Arguments

x

A numeric value that should be normalized.

min

A numeric value.

max

A numeric value.

Value

A scaled value between [0,1] of x. If the input x,min or max is not a numeric value or min is not smaller than max (min < max), an error message is returned.

Examples

1
scale_feature(x = 2.5, min = 1, max = 5)

mowomoyela/tstaxonomyr documentation built on May 15, 2019, 4:47 p.m.