make_sampletable: Make sample table

View source: R/make_sampletable.R

make_sampletableR Documentation

Make sample table

Description

Converts long-format GC-MS data to a wide data frame with samples in rows and compound names in columns, containing peak areas

Usage

make_sampletable(longdata, metadata)

Arguments

longdata

the long format data frame

metadata

the sample metadata, rows will match order of metadata$sample

Value

sampletable, a wide data frame with samples in rows and compound names in columns, containing peak areas

Examples

data(GCMSfloral)
sampletable <- make_sampletable(longdata, metadata)

jmpowers/bouquet documentation built on Feb. 12, 2023, 12:11 a.m.