Learn R Programming

chromatographR (version 0.4.4)

filter_peaktable: Filter peak table

Description

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.

tol

Tolerance for matching of retention times to rts.

Author

Ethan Bass

See Also

get_peaktable, filter_peaks

Examples

Run this code
data(pk_tab)
pk_tab <- filter_peaktable(pk_tab, min_rt = 10, max_rt = 16)

Run the code above in your browser using DataLab