R/dom.R

#--------------------------------------------
#' @title dom
#' @description Spit out domain of a CPT or POT.
#'
#' @details Spit out domain of a CPT or POT:
#'
#' @param pot.table A potential (or node probability) table. Should be of class parray or array.
#'
#' @return The domain of random variates over which the bale is constructed.
#'
#' @examples
#' XXXX
#--------------------------------------------
dom <- function(pot.table) {
  return(names(attributes(pot.table)$dim))
}
npetraco/bayes705 documentation built on May 23, 2019, 9:33 p.m.