This function will normalize the rows of a matrix.
rowNorms(X, type = NULL, center = FALSE, scale = FALSE)
Returns a row normalized version of X.
Data matrix
a string. Type of normalization to perform. Options are hellinger
, ca
, z
, other
optional. A vector to center the columns of X.
optional. A vector to scale the values of X.
Derek Beaton
rowNorms works like link{expo.scale}
, but for rows. Hellinger row norm via hellinger
, Correspondence analysis analysis row norm (row profiles) via ca
, Z-score row norm via z
. other
passes center
and scale
to expo.scale
and allows for optional centering and scaling parameters.