Description Usage Arguments Value
View source: R/normalize_rows.R
row_norm_to_sum normalizes all the frame-rows by the sum of a number of them..
1 | row_norm_to_sum(dd, normCols, rowInds = NULL, colInds = NULL)
|
dd |
input data frame to normalize |
normCols |
A vector of indices that pick columns. Sums (for normalization) are calculated from these in row-wise manner, and they are used to normalize. 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. This can be NULL, in which case all rows are normalized, or it can be a vector of integer indices, or it can be a function that gets called with dd and which returns a vector of ints (see function 'span' in this package) |
colInds |
A span of column 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. This can be NULL, in which case all columns are normalized, or it can be a vector of integer indices, or it can be a function that gets called with dd and which returns a vector of ints (see function 'span' in this package) |
returns the input data frame, but with the data cols normalized.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.