rescale_max: Rescale numeric vector to have specified maximum.

Description Usage Arguments Examples

View source: R/bounds.r

Description

Rescale numeric vector to have specified maximum.

Usage

1
rescale_max(x, to = c(0, 1), from = range(x, na.rm = TRUE))

Arguments

x

numeric vector of values to manipulate.

to

output range (numeric vector of length two)

from

input range (numeric vector of length two). If not given, is calculated from the range of x

Examples

1
2
3

scales documentation built on Aug. 24, 2017, 5:22 p.m.