Utility function to remove peaks from peak table, e.g. because their
intensity is too low. Currently one can filter on mean or median peak intensity,
or retention time.
Usage
filter_peaktable(
peak_table,
rts,
min_rt,
max_rt,
min_value,
comp,
what = c("median", "mean"),
tol = 0
)
Value
A peak table similar to the input, with all columns removed
from the peak table that do not satisfy the specified criteria.
Arguments
peak_table
A peak_table object from get_peaktable.
rts
Vector of retention times to include in the peak table.
min_rt
Minimum retention time to include in the peak table.
max_rt
Maximum retention time to include in the peak table.
min_value
Minimal cutoff for average peak intensity.
comp
Component(s) to include in peak table (e.g. wavelengths if you
are using HPLC-DAD/UV).
what
Whether to average intensities using mean or median.