Check if an object is mrgsim output
is.mrgsims(x)
x
any object
TRUE if x inherits mrgsims.
TRUE
mrgsims