checks whether a variable has the named attributes
grapes-has-grapes.Rdchecks whether a variable has the named attributes
Examples
m <- model_from_tsv(uqsa_example("AKAP79"))
x <- values(m$Compound)
x %has% "unit"
#> [1] TRUE
print(x %@% "unit")
#> Rii cAMP RiiP Rii_C RiiP_cAMP
#> "µM" "µM" "µM" "µM" "µM"
#> RiiP_C RiiP_C_cAMP C Rii_cAMP Rii_C_cAMP
#> "µM" "µM" "µM" "µM" "µM"
#> CaN RiiP_CaN RiiP_cAMP_CaN AKAR4 AKAR4_C
#> "µM" "µM" "µM" "µM" "µM"
#> AKAR4p
#> "µM"