scale_MinMax: Min-Max Normalization

Description Usage Arguments Details Value Examples

View source: R/scale_MinMax.R

Description

The function is used to linearly map the specified matrix into a new interval from 0 to 1 on each column of the matrix.

Usage

1

Arguments

x

a dataframe

Details

The Max-Min linear normalization is a process that changes the range of dataset into 0-1.

Value

x_scale

the Max-Min normalized matrix

Examples

1
2
3
4
5
6
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
weight <- cbind(ctl, trt)
print(weight)
weight_scale<-scale_MinMax(weight)
print(weight_scale)

MLRMPA documentation built on May 29, 2017, 10:17 a.m.