norm_01: Normalization on numerical features

Description Usage Arguments Value Examples

Description

Rescale features to fall within 0 and 1.

Usage

1
norm_01(feature, featureRange, newFieldName)

Arguments

feature

Vector of float numbers to normalize.

featureRange

Vector of two float numbers indicating range of original feature.

newFieldName

Character string used to form name for the normalized feature.

Value

Vector of rescaled values that fall between 0 and 1.

Examples

1
2
normTerm_UsedPlat <- norm_01(feature = Data_UsedPlat$TermInMonths, featureRange = c(36, 72),
    newFieldName = 'Term')

hongqi0314/PRAuto.PMML documentation built on May 6, 2019, 11:30 a.m.