split-SingleCellAssay-character-method: Split into 'list'

split,SingleCellAssay,character-methodR Documentation

Split into list

Description

Splits a SingleCellAssay into a list by a factor (or something coercible into a factor) or a character giving a column of colData(x)

Usage

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

Arguments

x

SingleCellAssay

f

length-1 character, or atomic of length ncol(x)

drop

drop unused factor levels

...

ignored

Value

List

Examples

data(vbetaFA)
split(vbetaFA, 'ncells')
fa <- as.factor(colData(vbetaFA)$ncells)
split(vbetaFA, fa)


RGLab/MAST documentation built on Sept. 30, 2023, 1:08 p.m.