col_norm_to_frame: col_norm_to_frame normalizes all the frame-columns by one of...

Description Usage Arguments Value

View source: R/normalize_cols.R

Description

Set this to the first frame to normalize by the most intense frame, or set this to the internal standard frame.

Usage

1
col_norm_to_frame(dd, normRow, rowInds = NULL, colInds = NULL)

Arguments

dd

input data frame to normalize

normRow

numeric row index indicating the row of the frame we normalize to.

rowInds

A span of rows 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 columns over which to operate, just so that you can have other ignored columns be in there (time, mz, etc). This can be NULL, in which case all cols 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)

Value

returns the input data frame, but with the specified data columns each normalized by the corresponding entry in the normRow row.


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