rtdata: Retrieve Retention Time Values

rtDataR Documentation

Retrieve Retention Time Values

Description

This retrieves feature RT values from one or all constituent dataset features of a metabCombiner object. Alternatively, the average RT value can be retrieved.

Usage

rtData(object, data = NULL, value = c("obs", "mean"))

## S4 method for signature 'metabCombiner'
rtData(object, data = NULL, value = c("observed", "mean"))

Arguments

object

metabCombiner object

data

dataset identifier to extract information from; if NULL, extracts information from all datasets

value

Either"obs" (observed - default option) or "mean"

Value

data frame or vector of retention time values

Examples

data(plasma30)
data(plasma20)

p30 <- metabData(head(plasma30,500), samples = "CHEAR")
p20 <- metabData(head(plasma20,500), samples = "Red")
p.comb <- metabCombiner(p30, p20, xid = "p30", yid = "p20")

##retrieve all RTs
rt <- rtData(p.comb, data = NULL)

##retrieve RTs from p30
rt <- rtData(p.comb, data = "p30")

##retrieve mean RT
rt <- rtData(p.comb, value = "mean")


hhabra/Combiner documentation built on June 5, 2024, 10:56 a.m.