Learn R Programming

INSPEcT (version 1.2.2)

split: Divide an INSPEcT Object into groups

Description

Divides the INSPEcT object into the groups defined by 'f',

Usage

"split"(x, f, drop = FALSE, ...)

Arguments

x
An object of class INSPEcT
f
A vector of length equal to the number of genes in x which defines the groups
drop
A logical belonging to the generic funciton, useless in this context.
...
Additional arguments to match the generic function

Value

A list containing objects of class INSPEcT

Examples

Run this code
data('mycerIds10')
splitIdx <- c(1,1,1,2,2,2,3,3,3,4)
mycerIds10Split <- split(mycerIds10, splitIdx)

Run the code above in your browser using DataLab