rescale {sequenceR} | R 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)
[Package sequenceR version 1.0.1 Index]