load_adduct_table: Load the Adduct Table Based on Polarity and Column Type

load_adduct_tableR Documentation

Load the Adduct Table Based on Polarity and Column Type

Description

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.

Usage

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"'.

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.

Value

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

Examples

## Not run: 
# Load adduct table for positive polarity and reversed-phase column
adduct_table <- load_adduct_table(polarity = "positive", column = "rp")
head(adduct_table)

## End(Not run)



tidymass/metid documentation built on Oct. 8, 2024, 10:32 p.m.