minGroupCount: Return the size of the smallest group

View source: R/minGroupCount.R

minGroupCountR Documentation

Return the size of the smallest group

Description

Return the size of the smallest group

Usage

minGroupCount(obj)

## S3 method for class 'DGEList'
minGroupCount(obj)

## S3 method for class 'EdgeObject'
minGroupCount(obj)

Arguments

obj

A DGEList or EdgeObject object

Value

Integer

Methods (by class)

  • minGroupCount(DGEList): Return the size of the smallest group defined in the DGEList object

  • minGroupCount(EdgeObject): Return the size of the smallest group defined in the EdgeObject object

Examples

y <- matrix(rnbinom(12000,mu=10,size=2),ncol=6)
d <- DGEList(counts=y, group=rep(1:3,each=2))
minGroupCount(d) ## 2 
d2 <- DGEList(counts=y, group=rep(1:2,each=3))
minGroupCount(d2) ## 3
d3 <- DGEList(counts=y, group=rep(1:3, 1:3))
minGroupCount(d3) ## 1


bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.