Learn R Programming

liver (version 1.18)

minmax: Min-Max scaling of numerical variables

Description

Performs Min-Max tranformation for numerical variables.

Usage

minmax(x, columns = NULL, na.rm = FALSE)

Value

transformed version of x.

Arguments

x

a numerical vector, matrix or data.frame.

columns

which columns are going to tranfer for the cases that x is a matrix or a data.frame. Defaults to all columns.

na.rm

a logical value indicating whether NA values in x should be stripped before the computation proceeds.

Author

Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie

See Also

scaler, zscore

Examples

Run this code
x = c(2.3, -1.4, 0, 3.45)

minmax(x)

Run the code above in your browser using DataLab