Learn R Programming

smartdata (version 1.0.3)

normalize: Normalization wrapper

Description

Normalization wrapper

Usage

normalize(dataset, method, exclude = NULL, ...)

Arguments

dataset

we want to perform normalization on

method

selected method of normalization

exclude

character. Vector of attributes to exclude from the normalization

...

Further arguments for method

Value

The normalized dataset

Examples

Run this code
# NOT RUN {
library("smartdata")

super_iris <- normalize(iris, method = "min_max", exclude = "Species", by = "column")
# Use default parameter by = "row"
super_iris <- normalize(iris, method = "min_max", exclude = c("Sepal.Length", "Species"))
super_iris <- normalize(iris, method = "min_max", exclude = "Species", by = "row")
super_iris <- normalize(iris, method = "z_score", exclude = "Species", by = "row")
super_iris <- normalize(iris, method = "sd_quotient", exclude = "Species", by = "row")

# }

Run the code above in your browser using DataLab