norm_z {normfluodbf}R Documentation

Title: Z-score standardization or normalization function.

Description

Title: Z-score standardization or normalization function.

Usage

norm_z(x)

Arguments

x

Attribute value(s).

Value

A standardized value (Z = N (0,1)) when applied to a single value or a standardized attribute with values (Z = N (0,1)).

Note

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

Author(s)

Tingwei Adeck

References

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

Examples

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


[Package normfluodbf version 1.5.2 Index]