Learn R Programming

normfluodbf (version 1.5.2)

min_max_norm: Title: Min-Max normalization on a 0-1 scale.

Description

Title: Min-Max normalization on a 0-1 scale.

Usage

min_max_norm(x)

Value

A normalized value (between 0 and 1) when applied to a single value or a normalized attribute with values between 0 and 1.

Arguments

x

Attribute value(s).

Author

Tingwei Adeck

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