subset,CohortList-method {PDATK}R Documentation

Subset method for a CohortList

Description

Works using endoapply of [ over the list SurvivalExperiments

Usage

## 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

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


[Package PDATK version 1.1.3 Index]