Rescales vector of values to span between specified range [new.min, new.max]

rescaleValues(values, new.min = 0, new.max = 1)

Arguments

values

Numeric vector of values to rescale.

new.min

Numeric specfiying new minimum. If unspecified, default is 0.

new.max

Numeric specfiying new maximum. If unspecified, default is 1.

Value

Numeric vector of rescaled values

Author

Nicholas Mikolajewicz

Examples


# rescale values
values <- rescaleValues(values)
#> Warning: restarting interrupted promise evaluation
#> Error in rescaleValues(values): object 'values' not found