is_scalar_subset: Is scalar subset

View source: R/1_assertions.R

is_scalar_subsetR Documentation

Is scalar subset

Description

Is scalar subset

Usage

is_scalar_subset(
  x,
  y,
  .xname = get_name_in_parent(x),
  .yname = get_name_in_parent(y)
)

assert_scalar_subset(
  x,
  y,
  .xname = get_name_in_parent(x),
  .yname = get_name_in_parent(y)
)

Arguments

x

scalar

y

SummarizedExperiment

.xname

name of x

.yname

name of y

Examples

file <- system.file('extdata/fukuda20.proteingroups.txt', package = 'autonomics')
object <- read_maxquant_proteingroups(file)
is_scalar_subset('subgroup',     svars(object))
is_scalar_subset('subject',      svars(object))
assert_scalar_subset('subgroup', svars(object))

bhagwataditya/importomics documentation built on Nov. 28, 2024, 8:28 a.m.