R/is.mlnet.R

Defines functions is.mlnet

Documented in is.mlnet

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