powered by
Function to undertake a range transformation on a data matrix in order that each column is scaled zero-one between the minimum and maximum values.
rng(xx)
a n by p matrix to be range transformed.
n
p
a n by p matrix of range-transformed values.
remove.na
# NOT RUN { ## Make test data available data(sind) sind.mat <- as.matrix(sind[, -c(1:3)]) ## Undertake range transform temp <- rng(sind.mat) temp ## Clean-up rm(sind.mat) rm(temp) # }
Run the code above in your browser using DataLab