View source: R/make_chemtable.R
make_chemtable | R Documentation |
Summarize information about each chemical, including retention time and frequency of occurence by groups. Prerequisite for the filter* functions.
make_chemtable(gcdata, metadata, datatype = "long")
gcdata |
peaks integrated from GC data, either in long format (peaks in rows with columns for area, match score, and retention time, as generated by 'load_longdata()') or if detailed peak information is not available, in wide format (table of peak areas with samples in rows and compounds in columns, as generated by 'make_sampletable()'). |
metadata |
the sample metadata, in the same row order as gcdata if datatype is 'wide' |
datatype |
the format of gcdata, either 'long' (the default) or 'wide' |
Generates chemtable, a data frame of the compounds, with the following columns:
compound name
mean RT
variance of RT
mean match
variance of match
maximum area in floral samples
mean area in floral samples, including zeros
mean area in floral samples, excluding zeros
median area in floral samples, including zeros
multiple columns, number of occurrences within types and treatment groups
multiple columns, proportion of occurrences within types and treatment groups
chemtable, a data frame of the compound
data(GCMSfloral)
## Not run: chemtable <- make_chemtable(longdata, metadata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.