add_table {MultiDataSet} | R Documentation |
matrix
to MultiDataSet
.This method adds or overwrites a slot of a MultiDataSet
with the content
of the given matrix
.
add_table( object, set, dataset.type, dataset.name = NULL, warnings = TRUE, overwrite = FALSE )
object |
|
set |
|
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. |
A new MultiDataSet
with a slot filled.
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")