Learn R Programming

lares (version 5.1.0)

normalize: Normalize Vector

Description

This function lets the user normalize numerical values into the 0 to 1 range

Usage

normalize(x)

Arguments

x

Numeric Vector. Numbers to be transformed into normalized vector

Value

Vector with normalized x values

See Also

Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), formatNum(), holidays(), impute(), left(), ohe_commas(), ohse(), removenacols(), replaceall(), textFeats(), textTokenizer(), vector2text(), year_month()

Examples

Run this code
# NOT RUN {
x <- c(0, 1, 4, 7.5, 10)
normalize(x)
# }

Run the code above in your browser using DataLab