Learn R Programming

ZIprop (version 0.1.1)

scale_01: Scale vector

Description

Scale a vector between 0 and 1.

Usage

scale_01(x)

Arguments

x

a vector.

Value

the scaled vector of x.

Examples

Run this code
# NOT RUN {
x = runif(100,-10,10)
x_scale = scale_01(x)
range(x_scale)
# }

Run the code above in your browser using DataLab