This function loads the appropriate adduct table based on the specified ionization polarity and chromatographic column type. The adduct tables contain information about the different adducts used in mass spectrometry.

load_adduct_table(
  polarity = c("positive", "negative"),
  column = c("rp", "hilic")
)

Arguments

polarity

Character. The ionization mode, either `"positive"` or `"negative"`. Default is `"positive"`.

column

Character. The chromatographic column type, either `"rp"` (reversed-phase) or `"hilic"` (hydrophilic interaction chromatography). Default is `"rp"`.

Value

A data frame representing the adduct table for the specified `polarity` and `column`.

Details

The function loads the appropriate adduct table from the environment based on the ionization mode (`polarity`) and column type (`column`). It supports four combinations: * Positive polarity with HILIC (`"hilic.pos"`) * Positive polarity with RP (`"rp.pos"`) * Negative polarity with HILIC (`"hilic.neg"`) * Negative polarity with RP (`"rp.neg"`)

The corresponding adduct table is returned as a data frame.

Examples

if (FALSE) { # \dontrun{
# Load adduct table for positive polarity and reversed-phase column
adduct_table <- load_adduct_table(polarity = "positive", column = "rp")
head(adduct_table)
} # }