powered by
Rescale each column of a matrix
rescaler(x, magnitude)
a matrix
a single value or a vector with length equal to the number of columns in x
rescaler(matrix(1, nrow = 2, ncol = 2), magnitude = c(2,3))
Run the code above in your browser using DataLab