add_table: Method to add a 'matrix' to 'MultiDataSet'.

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
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")

MultiDataSet documentation built on Jan. 31, 2021, 2:01 a.m.