R/is.gof_mlergm.R

Defines functions is.gof_mlergm

Documented in is.gof_mlergm

#' Check if object is of class \code{gof_mlergm}
#'
#' Function checks if a provided object is of class \code{gof_mlergm} (see \code{\link{gof.mlergm}} for details). 
#'
#' @param x An object to be checked. 
#'
#' @return \code{TRUE} if the provided object \code{x} is of class \code{gof_mlergm}, \code{FALSE} otherwise. 
#' @export 
#' @seealso \code{\link{mlergm}}, \code{\link{gof.mlergm}}
is.gof_mlergm <- function(x) {
  if (is(x)[1] == "gof_mlergm") { 
    return(TRUE)
  } else { 
    return(FALSE)
  }
}

Try the mlergm package in your browser

Any scripts or data that you put into this service are public.

mlergm documentation built on Aug. 23, 2021, 5:06 p.m.