Description Usage Arguments Value
View source: R/normalize_cols.R
col_norm_to_sum normalizes all the frame-columns by the sum of a number of them..
1 | col_norm_to_sum(dd, normRows, rowInds = NULL, colInds = NULL)
|
dd |
input data frame to normalize |
normRows |
A vector of indices that pick rows. Sums are calculated from these in column-wise manner, and they are used to normalize the columns. May be a function like 'span' |
rowInds |
A span of row indices over which to operate. These should be the data rows, and this is just so that you can have other ignored rows be in there. May be a function like 'span'. |
colInds |
A span of indices over which to operate. These should be the data columns, and this is just so that you can have other ignored columns be in there. May be a function like 'span'. |
returns the input data frame, but with the specified data normalized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.