Skip to contents

NResource() for a mizerMR simulation returns a three-dimensional array (time x resource x size) holding the resource number densities through time. The MRArrayTimeByResourceBySize class wraps this array to provide convenient print(), summary(), plot(), and as.data.frame() methods. It is the multiple-resource analogue of mizer's ArrayTimeByResourceBySize class.

Usage

MRArrayTimeByResourceBySize(x, value_name = NULL, units = NULL, params = NULL)

Arguments

x

A three-dimensional array (time x resource x size).

value_name

A string giving the human-readable name for the value.

units

A string giving the units (e.g. "1/g").

params

A MizerParams object. Used for the resource colours and the size grid in the plot() method.

Value

An MRArrayTimeByResourceBySize object (inherits from array).