Does the object contain a subset of data?

hasSubset(x, metadata = "subset", .xname = getNameInParent(x))

Arguments

x

Annotated.

metadata

character. Names in metadata() that denote object is subset.

.xname

Name of object defined in x. Not intended to be used directly.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2019-08-12.

Examples

if (requireNamespace("SummarizedExperiment", quietly = TRUE)) { data(RangedSummarizedExperiment, package = "acidtest") x <- RangedSummarizedExperiment hasSubset(x) }
#> [1] FALSE #> Cause: 'x' does not contain slots in 'metadata()': subset.