rescale: Rescale a vector to have a specified minimum and maximum.

View source: R/rescale.R

rescaleR Documentation

Rescale a vector to have a specified minimum and maximum.

Description

Rescale a vector to have a specified minimum and maximum.

Usage

rescale(x, newRange = c(0, 1))

Arguments

x

Numeric object.

newRange

Numeric vector of length\NB2.

Author(s)

Simon D. Jackman

See Also

\linkInt

scale and scales::rescale()

Examples

vec <- 1:10
rescale(vec, c(2, 5))


jbullock35/Bullock documentation built on April 1, 2022, 6:21 p.m.