normalize {andrews} | R Documentation |
Normalization
Description
Normalization of a variable:
-
type==1
:ar
normalized into[0,1]
, -
type==2
:ar
is standardized, otherwise no normalization is done.
Usage
normalize(ar, type = 1)
Arguments
ar |
numeric variable. |
type |
integer: type of normalization (default: |
Details
Normalization of variable: ar<-(ar-min(ar))/(max(ar)-min(ar))
Value
Returns normalized variable.
Author(s)
Jaroslav Myslivec jaroslav.myslivec@upce.cz, Sigbert Klinke sigbert@hu-berlin.de
Examples
normalize(iris[,1])
[Package andrews version 1.1.2 Index]