View source: R/attach_metadata.R
attach_metadata | R Documentation |
Attaches sample metadata to 'peak_table' object. Metadata should be provided as a data.frame 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)
peak_table |
A 'peak_table' object. |
metadata |
A 'data.frame' containing the sample metadata. |
column |
The name of the column in your |
A peak_table
object with attached metadata in the
$sample_meta
slot.
Ethan Bass
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.