powered by
Normalize rows or columns by its standard deviation.
normalize(x, normalize = 0, ...)
Not yet defined TODO!
matrix
A numeric value indicating along what direction (rows, columns) to normalize by standard deviations. 0 = none, 1= rows, 2 = columns (default is 0).
0 = none, 1= rows, 2 = columns
0
Not evaluated.
x <- matrix(sample(1:5, 20, rep = TRUE), 4) normalize(x, 1) # normalizing rows normalize(x, 2) # normalizing columns
Run the code above in your browser using DataLab