this function performs rescaling and either defines min and max from each feature in a data set, or applies the transformation based on a previously defined min and max

minmax(x, mode = "define", MinX = FALSE, MaxX = FALSE)

Arguments

x

numeric. data matrix

mode

character. 'define' or 'apply'

MinX

numeric. if 'apply'

MaxX

numeric. if 'apply'

Value

rescaled data, min and max values