R/is.R

Defines functions is.jmb_analysis is.jmb_model is.jmb_code

Documented in is.jmb_analysis is.jmb_code is.jmb_model

#' Is JAGS Code
#'
#' Tests whether x is an object of class 'jmb_code'
#'
#' @param x The object to test.
#' @return A flag indicating whether the test was positive.
#' @export
is.jmb_code <- function(x) {
  inherits(x, "jmb_code")
}

#' Is a JAGS Model
#'
#' Tests whether x is an object of class 'jmb_model'
#'
#' @param x The object to test.
#'
#' @return A flag indicating whether the test was positive.
#' @export
is.jmb_model <- function(x) {
  inherits(x, "jmb_model")
}

#' Is a JAGS Analysis
#'
#' Tests whether x is an object of class 'jmb_analysis'
#'
#' @param x The object to test.
#'
#' @return A flag indicating whether the test was positive.
#' @export
is.jmb_analysis <- function(x) {
  inherits(x, "jmb_analysis")
}
poissonconsulting/jmbr documentation built on Jan. 18, 2024, 1:09 a.m.