newscale: convert vector linearly to new scale defined by provided min...

Description Usage Arguments Details Value

Description

newscale(vector, newmin = 0, newmax = 1)

Usage

1
newscale(vector, newmin = 0, newmax = 1)

Arguments

vector

is the original data vector

newmin

is the lowest value of the new scale

newmax

is the highest value of the new scale

Details

A simple conversion tool, the default values will normalize a vector of numerical values to range from zero to one. Providing alternative minimum and maximum values will have the scaled vector range between these two values.

Value

the newly scaled vector is returned


helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.