powered by
Attaches experimental metadata to `peak_table` object. One of the columns in the supplied metadata must match exactly the row names of the peak table.
attach_metadata(peak_table, metadata, column)
A peak_table object with attached metadata in the $sample_meta slot.
peak_table
$sample_meta
A `peak_table` object.
A `data.frame` containing the sample meta-data.
The name of the column containing the sample names.
Ethan Bass
get_peaktable normalize_data
get_peaktable
normalize_data
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")
Run the code above in your browser using DataLab