Learn R Programming

tidyDenovix (version 2.1.0)

min_max_norm: Title: Min-Max normalization of attributes that require normalization

Description

Title: Min-Max normalization of attributes that require normalization

Usage

min_max_norm(x)

Value

A normalized value (value between 1 and 0)

Arguments

x

A single value from an attribute passed in the function for normalization.

Author

Tingwei Adeck (Adapted from Statology)

References

https://www.statology.org/how-to-normalize-data-in-r/

Examples

Run this code
test_df <- as.data.frame(c(seq(40)))
colnames(test_df) <- "test"
test_df_norm <- lapply(test_df[1:ncol(test_df)], min_max_norm)

Run the code above in your browser using DataLab