Learn R Programming

SIM (version 1.42.0)

getRI: Generate a calibration function

Description

This function generates a calibration function which can be used to calculate the retention index of a compound, given its retention time together with the retention indexes of RI standards and their retention times.

Usage

getRI(RItable = data.frame())

Arguments

RItable
a data frame of retention times and indexes of RI standardsPeaks, e.g. generated by calling getRIStandard.

Value

  • A calibration function which accepts a retention time and outputs corresponding retention index.

Details

The input of this function is an RItable. RItable is the table of RTs and correponding RIs of RI standards measured using an RI run. The user can get the RItable using the getRIStandard function. The output of this function is a function which can be used for retention index calculation providing a retention time.

References

http://omics.georgetown.edu/SIMAT.html

See Also

getRIStandard

Examples

Run this code
# load retention index table from RI standards
    data(RItable)

    # create a calibration function
    calcRI <- getRI(RItable)
    
    # perform RI calibration for a certain RT = 7.32min
    calcRI(12.32)

Run the code above in your browser using DataLab