Skip to contents

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

Usage

min_max_norm_percent(x)

Arguments

x

Attribute value(s).

Value

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

Note

The lapply function is required to apply this function across several attributes.

References

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

Author

Tingwei Adeck

Examples

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_percent)