Skip to contents

normalise a vector to range 0-1

Usage

norm_to_range_01(x)

Arguments

x

vector to normalise to range 0-1

Value

vector, normalised to range 0-1

See also

Examples

x <- runif(n = 50, min = 1, max = 10)
max(duflor:::norm_to_range_01(x))
#> [1] 1
min(duflor:::norm_to_range_01(x))
#> [1] 0