is.mm: Function to check if an object is of class 'mm'

View source: R/mm.R

is.mmR Documentation

Function to check if an object is of class mm

Description

is.mm returns TRUE if x is an object of class mm.

Usage

is.mm(x)

Arguments

x

An arbitrary R object.

Value

is.mm returns TRUE or FALSE depending on whether x is an object of class mm or not.

Examples

x <- mm(states = c("a", "b"), init = c(0.5, 0.5), k = 1,
        ptrans = matrix(c(0.9, 0.1, 0.3, 0.7), nrow = 2, byrow = TRUE))

is.mm(x)
is.mm("a")


smmR documentation built on Nov. 28, 2026, 1:06 a.m.