R/main.R
rescaler.Rd
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)) #> [,1] [,2] #> [1,] 2 3 #> [2,] 2 3