R/is.m2.r

Defines functions is.m2

Documented in is.m2

#' Macaulay2 Object Check
#'
#' Test whether an object is an m2 object.
#'
#' @param x object to be tested
#' @return Vector of logicals.
#' @export
#' @examples
#' \dontrun{
#' 
#' is.m2(m2("13^1000"))
#' 
#' }
#' 
is.m2 <- function(x){
  any(class(x) == "m2")
}

Try the algstat package in your browser

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

algstat documentation built on May 29, 2017, 10:34 p.m.