add.data: Add a dataset to a SPEAR object.

View source: R/2_helpers.R

add.dataR Documentation

Add a dataset to a SPEAR object.

Description

Add a dataset to a SPEAR object.

Usage

add.data(data, response = NULL, name = NULL)

Arguments

response

Column name(s) of colData from MultiAssayExperiment that will be the response(s). More than one response should be inputted as a vector.

name

Name for the stored dataset in the SPEAR object. Access via 'SPEAR$get.data(__name__)'

mae

MultiAssayExperiment with multi-omics data. Columns of ExperimentList must match (correspond to sample identifiers) and link to rows of colData (with response/responses).

Examples

SPEAR <- SPEAR$new(...)

SPEAR$add.data(MultiAssayExperiment(...), response = "death", name = "dataset1")


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