Learn R Programming

SingleCellAssay (version 0.80)

split,DataLayer-method: Split a DataLayer correctly

Description

split.default doesn't seem to do the right thing for an array

Usage

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

Arguments

x

vector or data frame containing values to be divided into groups.

f

a ‘factor’ in the sense that as.factor(f) defines the grouping, or a list of such factors in which case their interaction is used for the grouping.

drop

logical indicating if levels that do not occur should be dropped (if f is a factor or a list).

...

further potential arguments passed to methods.