docs/functions/get.data.md

get.data

Retrieve a dataset stored in a SPEAR object (see names using names(SPEARobject$data)

Description

Retrieve a dataset stored in a SPEAR object (see names using names(SPEARobject$data)

Usage

get.data(name = "train", return.all = FALSE)

Arguments

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)

Examples

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


jgygi/SPEAR documentation built on July 5, 2023, 5:35 p.m.