norm_data: Normalize matrix per column in [0, 1]

Description Usage Arguments Value Examples

View source: R/lambda_functions.R

Description

This function normalizes each column of a dataframe or matrix (-alike) between 0 and 1.

Usage

1

Arguments

X

Dataframe or matrix (-alike) containing data.

Value

The normalized dataframe.

Examples

1
2
3
X <- matrix(rnorm(1000, 0.2, 0.3), nrow = 100)
X_norm <- norm_data(X)
print(range(X_norm))

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