View source: R/filter_ambient_date.R
filter_ambient_date | R Documentation |
This function allows you to filter compounds based on a threshold ratio of a compound's mean area in floral samples vs. ambient samples on a particular date.
filter_ambient_date( chemtable, sampletable, metadata, ratio = 3, prop_dates = 0.5 )
chemtable |
the data frame of the data about the compounds |
sampletable |
the wide data frame with samples in rows and compound names in columns, containing peak areas |
metadata |
the data frame that contains meta data about the group, type, and other attributes of each sample |
ratio |
the minimum ratio of mean areas from floral to the ambient sample on that collection date |
prop_dates |
the minimum proportion of dates a compound must pass the ratio test to pass overall |
data(GCMSfloral) chemtable <- filter_ambient_date(chemtable, sampletable, metadata, ratio=4, prop_dates=0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.