scale_01: Scale vector

Description Usage Arguments Value Examples

View source: R/scale_01.R

Description

Scale a vector between 0 and 1.

Usage

1

Arguments

x

a vector.

Value

the scaled vector of x.

Examples

1
2
3
x = runif(100,-10,10)
x_scale = scale_01(x)
range(x_scale)

ZIprop documentation built on June 9, 2021, 5:09 p.m.