add_table {MultiDataSet} | R Documentation

## Method to add a `matrix` to `MultiDataSet`.

### Description

This method adds or overwrites a slot of a `MultiDataSet` with the content of the given `matrix`.

### Usage

    add_table(object, set, dataset.type, dataset.name = NULL, warnings = TRUE,
      overwrite = FALSE)

### Arguments

`object` | `MultiDataSet` that will be filled.
`set` | `matrix` used to fill the slot.
`dataset.type` | Character with the type of data
`dataset.name` | Character with the specific name for this set (NULL by default). It is useful when there are several sets of the same type.
`warnings` | Logical to indicate if warnings will be displayed.
`overwrite` | Logical to indicate if the set stored in the slot will be overwritten.

### Value

A new `MultiDataSet` with a slot filled.

### Examples

    multi <- createMultiDataSet()
    mat <- matrix(runif(12), nrow = 3)
    colnames(mat) <- paste0("S", 1:4)
    rownames(mat) <- paste0("F", 1:3)
    multi <- add_table(multi, mat, "exampledata")

[Package MultiDataSet version 1.8.0 Index]