norm01: Normalize vector in [0, 1]

Description Usage Arguments Value Examples

View source: R/lambda_functions.R

Description

This function normalizes a given vector between 0 and 1.

Usage

1
norm01(x)

Arguments

x

Vector containing data.

Value

The normalized vector.

Examples

1
2
3
x <- rnorm(100, 0.2, 0.3)
x_norm <- norm01(x)
print(range(x_norm))

DMTL documentation built on Feb. 18, 2021, 5:06 p.m.