normalize: Normalization wrapper

Description Usage Arguments Value Examples

View source: R/normalization.R

Description

Normalization wrapper

Usage

1
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

1
2
3
4
5
6
7
8
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")

smartdata documentation built on Dec. 19, 2019, 1:08 a.m.