normalize {preputils}R Documentation

Normalize numeric variable to range(0,1)

Description

Changes range of numeric variables to have min=0 and max=1

Usage

normalize(x)

Arguments

x

name of object to normalize

Details

The function changes the range of the named numeric vector to finally have min(x)=0 and max(x)=1.

Value

vector of same length as x with normalized values

Examples

    normalize(1:5)

[Package preputils version 1.0.3 Index]