rescale: Rescale function

View source: R/utilities.R

rescaleR Documentation

Rescale function

Description

Rescale a series between two bounds

Usage

rescale(x, low = 0, high = 1)

Arguments

x

Numeric vector

low

Numeric, lower bound

high

Numeric, higher bound

Value

a rescaled numeric vector

Examples

# example code
rescale(1:10)
rescale(rnorm(10), 100, 101)

benRenard/sequenceR documentation built on Jan. 11, 2025, 2:33 a.m.