hasColDataColumns: Check for Column Names in the colData Slot of a...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Check for Column Names in the colData Slot of a SummarizedExperiment

Usage

1
hasColDataColumns(SE, values)

Arguments

SE

A SummarizedExperiment object to check for the existence of colData columns.

values

A character vector with one or more column name to check for in the column data.

Value

logical True if all of values are column names in the SummarizedExperiment object, FALSE otherwise.

Examples

1
2
3
SE <- SummarizedExperiment(matrix(rnorm(100), 10, 10),
    colData=data.frame(test=rep(1, 10)))
hasColDataColumns(SE, 'test')

bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.