Learn R Programming

normfluodbf (version 1.5.2)

decimal_scaling: Title: A decimal scaling function (a machine learning tool).

Description

Title: A decimal scaling function (a machine learning tool).

Usage

decimal_scaling(x)

Value

A decimal scaled value when applied to a single value or a decimal scaled attribute(s).

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)], decimal_scaling)

Run the code above in your browser using DataLab