Skip to contents

Coerces a MizerParams or MizerSim object to the S4 marker class corresponding to the object's own extension chain. For MizerSim, the extension chain is read from sim@params@extensions.

Usage

coerceToExtensionClass(object, extensions = objectExtensions(object))

Arguments

object

A MizerParams or MizerSim object.

extensions

Optional extension chain. Defaults to the chain stored in object, or in object@params for MizerSim.

Value

The same object coerced to the appropriate marker class, or to the base class for an empty extension chain.