subset-CohortList-method: Subset method for a 'CohortList'

Description Usage Arguments Value Examples

Description

Works using endoapply of [ over the list SurvivalExperiments

Usage

1
2
## S4 method for signature 'CohortList'
subset(x, subset = TRUE, select = TRUE, invert = FALSE)

Arguments

x

A CohortList object

subset

The row query. Defaults to TRUE, i.e., select all.

select

The column query. Defaults to TRUE, i.e., select all.

invert

A logical vector indicating if the matches should be inverted. Default is FALSE.

Value

A CohortList containing only the rows and columns selected in i and j, respectively.

Examples

1
2
3
data(sampleCohortList)
commonGenes <- findCommonGenes(sampleCohortList)
commonGenesCohortList <- subset(sampleCohortList, subset=commonGenes)

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.