View source: R/attach_metadata.R
normalize_data | R Documentation |
Normalizes peak table or list of chromatograms by specified column in sample
meta-data. Metadata must first be attached to peak_table
using
attach_metadata
.
normalize_data( peak_table, column, chrom_list, what = c("peak_table", "chrom_list") )
peak_table |
A 'peak_table' object |
column |
The name of the column containing the weights. |
chrom_list |
List of chromatograms for normalization. The samples must be in same order as the peak_table. |
what |
'peak_table' or list of chromatograms ('chrom_list'). |
A peak_table
object where the peaks are normalized by the mass
of each sample.
Ethan Bass
get_peaktable
attach_metadata
data(pk_tab) path <- system.file("extdata", "Sa_metadata.csv", package = "chromatographR") meta <- read.csv(path) pk_tab <- attach_metadata(peak_table = pk_tab, metadata = meta, column="vial") norm <- normalize_data(pk_tab, "mass", what = "peak_table")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.