attach_metadata: Attach experimental metadata

View source: R/attach_metadata.R

attach_metadataR Documentation

Attach experimental metadata

Description

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.

Usage

attach_metadata(peak_table, metadata, column)

Arguments

peak_table

A 'peak_table' object.

metadata

A 'data.frame' containing the sample meta-data.

column

The name of the column containing the sample names.

Value

A peak_table object with attached metadata in the $sample_meta slot.

Author(s)

Ethan Bass

See Also

get_peaktable normalize_data

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")

chromatographR documentation built on Aug. 24, 2022, 9:06 a.m.