View source: R/make_sampletable.R
make_sampletable | R Documentation |
Converts long-format GC-MS data to a wide data frame with samples in rows and compound names in columns, containing peak areas
make_sampletable(longdata, metadata)
longdata |
the long format data frame |
metadata |
the sample metadata, rows will match order of metadata$sample |
sampletable, a wide data frame with samples in rows and compound names in columns, containing peak areas
data(GCMSfloral) sampletable <- make_sampletable(longdata, metadata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.