split: Divide an INSPEcT Object into groups

Description Usage Arguments Value Examples

Description

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

Usage

1
2
## S4 method for signature 'INSPEcT,ANY'
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

1
2
3
nascentInspObj10 <- readRDS(system.file(package='INSPEcT', 'nascentInspObj10.rds'))
splitIdx <- c(1,1,1,2,2,2,3,3,3,4)
nascentInspObj10Split <- split(nascentInspObj10, splitIdx)

INSPEcT documentation built on Nov. 8, 2020, 6:49 p.m.