Learn R Programming

arkhe (version 1.4.0)

scale_range: Rescale Continuous Vector

Description

Rescales continuous vector to have specified minimum and maximum.

Usage

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

Value

A numeric vector.

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.