filter_leaf_ratio: A function to filter on whether the quantity of a compound in...

View source: R/filter_leaf_ratio.R

filter_leaf_ratioR Documentation

A function to filter on whether the quantity of a compound in leaf samples vs. floral samples is significantly different

Description

This function allows you to filter compounds based on whether the quantity of a compound in leaf samples vs. floral samples is significantly different by comparing the ratio of a compound in the floral samples to the leaf samples.

Usage

filter_leaf_ratio(chemtable, sampletable, metadata, ratio, leafgroup)

Arguments

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 ambient samples Defaults to XXX

leafgroup

the name of the column in the metadata that shows how leaf samples are related to floral samples

Examples

filter_leaf_ratio()

jmpowers/bouquet documentation built on Nov. 30, 2024, 12:02 a.m.