Skip to contents

This function lets the user normalize numerical values into the 0 to 1 range

Usage

normalize(x, ...)

Arguments

x

Numeric Vector. Numbers to be transformed into normalized vector

...

Additional parameters passed to corr and cor.test

Value

Vector with normalized x values

Examples

x <- c(0, 1, 4, 7.5, 10)
normalize(x)
#> [1] 0.00 0.10 0.40 0.75 1.00