filter_freq: Filter on compound frequency

View source: R/filter_freq.R

filter_freqR Documentation

Filter on compound frequency

Description

This function allows you to filter compounds are rare in the entire dataset or within certain groups.

Usage

filter_freq(chemtable, min_freq = 0.1, group = FALSE)

Arguments

chemtable

the data frame of the data about the compounds

min_freq

the minimum frequency value for inclusion

group

boolean, whether to set thresholds within each grouping level, or look across all floral samples

Examples

data(GCMSfloral)
chemtable <- filter_freq(chemtable, min_count = 0.2, group = TRUE)

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