normalise: Normalise a data frame or matrix

Description Usage Arguments Examples

Description

This function normalise a data frame or matrix.

Usage

1
normalise(x, method = c("center", "scale"))

Arguments

x

a data frame or matrix.

method

'range': normalise to values between 0 and 1.

Examples

1
2
3
4
5
## Normalise a matrix
x <- matrix(rnorm(100), nrow = 10)
x_norm <- normalise(x)
print(summary(x))
print(summary(x_norm))

woobe/predictr documentation built on May 4, 2019, 9:47 a.m.