get.data: Extract a dataset from a SPEAR object.

View source: R/2_helpers.R

get.dataR Documentation

Extract a dataset from a SPEAR object.

Description

Extract a dataset from a SPEAR object.

Usage

get.data(name = NULL)

Arguments

name

Name for the stored MultiAssayExperiment dataset in the SPEAR object.

Examples

SPEAR <- SPEAR$new(...)

# add a dataset under SPEAR$data$dataset1:
SPEAR$add.data(MultiAssayExperiment(...), response = "death", name = "dataset1")

# extract the dataset stored under SPEAR$data$dataset1:
data <- SPEAR$get.data("dataset1")


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