View source: R/MatrixLazyEval_convenience.R
ScaleLazily | R Documentation |
Scale rows or columns to a desired total.
ScaleLazily(M, do_rows = T, desired_sum = 1)
M |
Any matrix with a multiplication operator and nrow/ncol methods defined. Usually from the Matrix package. |
do_rows |
If true, the rows are scaled so every row has the desired sum. If false, the columns are centered so every column has the desired sum. This method is LAZY – calculations are put off until later, not triggered by calling this function. |
desired_sum |
Desired sum for each row or column. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.