R/is.mlergm.R

Defines functions is.mlergm

Documented in is.mlergm

#' Check if the object is of class \code{mlergm} 
#'
#' Function checks if a provided object is of class \code{mlergm} (see \code{\link{mlergm}} for details). 
#'
#' @param x An objected to be checked. 
#'
#' @return \code{TRUE} if the provided object \code{x} is of class \code{mlergm}, \code{FALSE} otherwise. 
#' @export  
#' @seealso \code{\link{mlergm}}
is.mlergm <- function(x) { 
  if (is(x) == "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.