Learn R Programming

sequenceR (version 1.0.1)

rescale: Rescale function

Description

Rescale a series between two bounds

Usage

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

Value

a rescaled numeric vector

Arguments

x

Numeric vector

low

Numeric, lower bound

high

Numeric, higher bound

Examples

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

Run the code above in your browser using DataLab