Learn R Programming

mizer (version 3.4.0)

coerceToExtensionClass: Coerce a mizer object to its extension class

Description

Coerces a MizerParams or MizerSim object to the S3 class hierarchy corresponding to the object's own extension list. For MizerSim, the extension names are read from the embedded MizerParams object.

Usage

coerceToExtensionClass(object, extensions = objectExtensions(object))

Value

The same object coerced to the appropriate S3 class vector, or to the base class for an empty extension list.

Arguments

object

A MizerParams or MizerSim object.

extensions

Optional extension list or vector. Defaults to the extensions stored in object, or in object$params for MizerSim.

Details

This is infrastructure for extension package authors. Ordinary users should load saved models with readParams() or readSim(); validParams() and validSim() repair the class vector of an object that is already in memory.

See Also

"Creating a mizer extension package": Creating a mizer extension package

Other extension tools: NOther(), initialNOther<-(), other_mort(), recordExtension(), setComponent(), setRateFunction()