mzdata {metabCombiner} | R Documentation

## Retrieve m/z Values

### Description

This retrieves feature m/z values from one or all constituent datasets of a `metabCombiner` object. Alternatively, the average m/z value can be retrieved.

### Usage

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

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

### Arguments

`object` | `metabCombiner` object
`data` | dataset identifier to extract information from; if NULL, extracts data frame information from all datasets
`value` | Either "obs" (observed - default option) or "mean" value

### Value

data frame of m/z values (if NULL) or single vector of m/z values

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 m/z mz <- mzdata(p.comb, data = NULL)

##retrieve m/z from p30 mz <- mzdata(p.comb, data = "p30")

##retrieve mean m/z mz <- mzdata(p.comb, value = "mean")

[Package metabCombiner version 1.2.2 Index]