normalize: Normalize numeric variable to range(0,1)

Description Usage Arguments Details Value Examples

View source: R/normalize.R

Description

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

Usage

1

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

1
    normalize(1:5)

preputils documentation built on July 1, 2020, 5:35 p.m.