Learn R Programming

preputils (version 1.0.3)

normalize: 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

Value

vector of same length as x with normalized values

Details

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

Examples

Run this code
# NOT RUN {
    normalize(1:5)
# }

Run the code above in your browser using DataLab