Attaches sample metadata to a 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.
Examples
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")