add_exp {omicRexposome} | R Documentation

## Method to add an ExposomeSet to a MultiDataSet

### Description

This method allows to insert an object of class ExposomeSet as an independent dataset into an object of class MultiDataSet.

### Usage

    add_exp(object, expoSet, warnings = TRUE, ...)

    ## S4 method for signature 'MultiDataSet,ExposomeSet'
    add_exp(object, expoSet, warnings = TRUE,
      ...)

### Arguments

`object` | An object of class MultiDataSet.
`expoSet` | An object of class ExposomeSet.
`warnings` | (default `TRUE`) If set to `FALSE` warnings will not be displayed.
`...` | Arguments given to add_eset from MultiDataSet.

### Value

A MultiDataSet with the ExpressionSet added as an independent dataset.

### Examples

    data("exposome", package = "rexposome")
    library(MultiDataSet)
    md <- new("MultiDataSet")
    names(md)
    md <- add_exp(md, expo)
    names(md)

[Package omicRexposome version 1.12.1 Index]