norm_data {DMTL}R Documentation

Normalize matrix per column in [0, 1]

Description

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

Usage

norm_data(X)

Arguments

X

Dataframe or matrix (-alike) containing data.

Value

The normalized dataframe.

Examples

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


[Package DMTL version 0.1.2 Index]