Extract the volume of each ROI across samples to create a peak table.

omit_times(peak_list, rt_time_2_omit = NULL, dt_time_2_omit = NULL)

Arguments

peak_list

The output of peaks(). Also, you can create your own peak table and use it as input value for peak_list

rt_time_2_omit

A vector including a set of retention times where ROIs detected should not be considered. As default is is set as NULL

dt_time_2_omit

A vector including a set of drift times where ROIs detected should not be considered. As default is is set as NULL

Value

A peak_list without the ROIs present in the retention and drift times not desired.

Examples


peak_list <- data.frame(
  rt_apex_s =  c(1, 2, 3, 3, 4, 4,  5, 5, 6, 6),
  dt_apex_ms = c(2, 4, 6, 4, 8, 4, 10, 4, 4, 12)
)
peak_list_filt <- omit_times(peak_list, dt_time_2_omit = 4)