ri2rt: Retention Time Index to Retention Time conversion

View source: R/rt2ri.R

ri2rtR Documentation

Retention Time Index to Retention Time conversion

Description

Convert retention time indices to retention times indices based on observed FAME RI and their standard values.

Usage

ri2rt(riTime, rt.observed, ri.standard)

Arguments

riTime

And RI vector or matrix to convert to Retention Time.

rt.observed

The observed FAME RT's. It could be a vector or a matrix.

ri.standard

The standard RI for each FAME

Details

This function is the inverse of rt2ri.

Value

The converted RT

Author(s)

Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig

See Also

RIcorrect, FAMEoutliers

Examples

  # RI standards
  standard <- c(100, 200, 300, 400, 500)
  # observed standard retention times
  observed <- c(10.4, 19.3, 32.4, 40.2, 50.3)
  # a random set of retention times
  RI       <- runif(100,90,600)	
  # the corrected RIs
  RT       <- ri2rt(RI, observed, standard)

acinostroza/TargetSearch documentation built on June 14, 2024, 8:03 a.m.