orbi_define_basepeak {isoorbi} | R Documentation |
orbi_define_basepeak()
sets one isotopocule in the data frame as the base peak (ratio denominator) and calculates the instantaneous isotope ratios against it.
orbi_define_basepeak(dataset, basepeak_def)
dataset |
A tibble from a |
basepeak_def |
The isotopocule that gets defined as base peak, i.e. the denominator to calculate ratios |
Input data frame without the rows of the basepeak isotopocule and instead three new columns called basepeak
, basepeak_ions
, and ratio
holding the basepeak information and the isotope ratios vs. the base peak
fpath <- system.file("extdata", "testfile_flow.isox", package = "isoorbi")
df <- orbi_read_isox(file = fpath) |>
orbi_simplify_isox() |>
orbi_define_basepeak(basepeak_def = "M0")