get.data
Retrieve a dataset stored in a SPEAR object (see names using names(SPEARobject$data)
Retrieve a dataset stored in a SPEAR object (see names using names(SPEARobject$data)
get.data(name = "train", return.all = FALSE)
Argument |Description
------------- |----------------
name
| Name of the stored dataset in the SPEARobject. Defaults to "train"
return.all
| Return ALL of the data stored? If FALSE
(default) only returns X
(concatenated matrix of all datasets), Xlist
(list of omics matrices) and Y
(matrix of responses per sample)
SPEARobj$get.data() # defaults to "train"
SPEARobj$get.data("test") # will return the data for SPEARobj$data$test
#' SPEARobj$get.data("test", return.all = TRUE) # will return ALL the data for SPEARobj$data$test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.