Learn R Programming

MAST (version 0.931)

split,SingleCellAssay-method: Split into SCASet

Description

Splits a SingleCellAssay into a SCASet by a factor (or something coercible into a factor) or a character giving a column of the melted SingleCellAssay

Usage

# S4 method for SingleCellAssay
split(x, f, drop = FALSE, ...)

Arguments

x

SingleCellAssay

f

length-1 character or factor of length nrow(x)

Value

SCASet

Examples

Run this code
# NOT RUN {
data(vbetaFA)
split(vbetaFA, 'ncells')
fa <- as.factor(cData(vbetaFA)$ncells)
split(vbetaFA, fa)
# }

Run the code above in your browser using DataLab