col_norm_to_sum: col_norm_to_sum normalizes all the frame-columns by the sum...

Description Usage Arguments Value

View source: R/normalize_cols.R

Description

col_norm_to_sum normalizes all the frame-columns by the sum of a number of them..

Usage

1
col_norm_to_sum(dd, normRows, rowInds = NULL, colInds = NULL)

Arguments

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'.

Value

returns the input data frame, but with the specified data normalized.


interzoneboy/MS-prep documentation built on June 13, 2020, 7:03 a.m.