peak_times_check: peak_times_check: function that checks whether peaks occur at...

View source: R/MLMSfunctions.R

peak_times_checkR Documentation

peak_times_check: function that checks whether peaks occur at the expected times

Description

peak_times_check: function that checks whether peaks occur at the expected times

Usage

peak_times_check(
  vend.df,
  expectedPeak.num,
  diff.t = 10,
  expectedStart,
  expectedRt,
  expectedEnd
)

Arguments

vend.df

dataframe of vendor table info

expectedPeak.num

expected number of reference peaks (default=5)

diff.t

acceptable time difference between expected peak times and actual peak times (default=5s)

expectedStart

vector of expected peak Start times (default for CO2)

expectedRt

vector of expected peak Rt (default for CO2)

expectedEnd

vector of expected peak End times (default for CO2)

Value

list containing boolean values indicating whether the expected number of reference peaks was found at the expected times and a dataframe containing the peak numbers and times

Examples

Usage Example
expTimes.list<-build_expected_times(refInd.vec,sampInd.vec,avgs.df)
peak_times_check(vendor.list[[10]],expectedStart=expTimes.list[[1]]$Expected_Start,expectedRt=expTimes.list[[1]]$Expected_Rt,expectedEnd=expTimes.list[[1]]$Expected_End) # using default values

lilyacb/MLMS documentation built on July 21, 2023, 4:12 a.m.