Skip to contents

Rescales a numeric variable into values between 0 and 1

Usage

rescale01(x)

Arguments

x

numeric vector (to be rescaled)

Value

vector with values between 0 and 1

Examples

rescale01(0:10)
#>  [1] 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0