R/utils-attr_rm.R

Defines functions attr_rm_all attr_rm

attr_rm <- function(x, which) {
  attr(x,which) <- NULL
  return(x)
}


# @rdname attr_rm
# @export
attr_rm_all <- function(x) {

 wh <- names( base::attributes(x) )
 for( w in wh ) attr(x,w) <- NULL

 x

}
decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.