Learn R Programming

fmf (version 1.1.1)

normalization: The Max-Min Normalization

Description

This function normalizes the data using the max-min normalization

Usage

normalization(x, margin = 2)

Arguments

x

the dataset.

margin

data is normalized by row (margin = 1) or by column (margin = 2). The default is 2.

Examples

Run this code
# NOT RUN {
data(ozone)
scaled.data = normalization(ozone[,-1])
ozone.scale = data.frame(y = as.character(ozone[,1]), scaled.data[,-1])

# }

Run the code above in your browser using DataLab