n_minmax {COINr}R Documentation

Minmax a vector

Description

Scales a vector using min-max method.

Usage

n_minmax(x, l_u = c(0, 100))

Arguments

x

A numeric vector

l_u

A vector c(l, u), where l is the lower bound and u is the upper bound. x will be scaled exactly onto this interval.

Value

Normalised vector

Examples

x <- runif(20)
n_minmax(x)


[Package COINr version 1.1.7 Index]