Similar to colScale
rowScale(x, add_attr = TRUE)
x
A matrix.
add_attr
If TRUE, the column means and standard deviations are returned as attributes. This is consistent with base::scale().
base::scale()
The scaled matrix.