datasets {metabCombiner} | R Documentation

## Obtain Dataset IDs

### Description

Each dataset in a `metabCombiner` object is represented by a character identifier. The datasets slot contains all these ids in a single vector, which can be obtained in sequential order with this accessor method

### Usage

    datasets(object, list = FALSE)

    ## S4 method for signature 'metabCombiner'
    datasets(object, list = FALSE)

### Arguments

`object` | metabCombiner object
`list` | logical, option to return in list format (TRUE) vs character vector format (FALSE)

### Value

character vector of dataset identifiers

### Examples

    #' @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")

    ##datasets extraction: expect "p30", "p20"
    sets <- datasets(p.comb, list = FALSE)

[Package metabCombiner version 1.2.2 Index]