scale_range: Rescale Continuous Vector (minimum, maximum)

View source: R/scale.R

scale_rangeR Documentation

Rescale Continuous Vector (minimum, maximum)

Description

Rescales continuous vector to have specified minimum and maximum.

Usage

scale_range(x, to = c(0, 1), from = range(x, finite = TRUE))

Arguments

x

A numeric vector.

to

A length-two numeric vector specifying the output range.

from

A length-two numeric vector specifying the input range.

Value

A numeric vector.

Note

For internal use only.

See Also

Other scales: scale_midpoint()


nfrerebeau/codex documentation built on June 30, 2024, 7:29 p.m.