remove.data: Remove a dataset from a SPEAR object.

View source: R/2_helpers.R

remove.dataR Documentation

Remove a dataset from a SPEAR object.

Description

Remove a dataset from a SPEAR object.

Usage

remove.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")

# remove the dataset stored under SPEAR$data$dataset1:
SPEAR$remove.data("dataset1")


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