R/utils.R

Defines functions has_attr

# test if object has attribute
#
# @param x object
# @param which character; names of possible attributes
#
# @note not exported

has_attr <- function(x, which) {

  which %in% names( attributes(x) )

}
decisionpatterns/sticky documentation built on March 24, 2020, 12:14 a.m.