getSamples: Get Sample Names From metabCombiner or metabData Object

Description Usage Arguments Value Examples

Description

Returns the sample names from one of the two datasets used in metabCombiner analysis, denoted as 'x' or 'y.'

Usage

1
2
3
4
5
6
7
getSamples(object, data = c("x", "y"))

## S4 method for signature 'metabCombiner'
getSamples(object, data = c("x", "y"))

## S4 method for signature 'metabData'
getSamples(object)

Arguments

object

A metabData object

data

Character. One of either 'x' or 'y'.

Value

character vector of sample names. For metabCombiner objects these may come from the 'x' dataset (if data = "x") or the 'y' dataset (if data = "y").

names of samples of formatted dataset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(plasma30)
data(plasma20)

p30 <- metabData(plasma30, samples = "CHEAR")
p20 <- metabData(plasma20, samples = "Red", rtmax = 17.25)

p.comb <- metabCombiner(xdata = p30, ydata = p20)

getSamples(p30)
getSamples(p.comb, data = "x")  #equivalent to previous
getSamples(p20)
getSamples(p.comb, data = "y")  #equivalent to previous

metabCombiner documentation built on Dec. 10, 2020, 2 a.m.