View source: R/ArrayResourceBySize-class.R
| ArrayTimeByResourceBySize | R Documentation |
The
NResource() function returns a two-dimensional array (time x size)
holding the resource number density through time. The
ArrayTimeByResourceBySize class wraps this array to provide convenient
print(), summary(), plot(), and as.data.frame() methods.
ArrayTimeByResourceBySize(
x,
value_name = NULL,
units = NULL,
type = NULL,
params = NULL
)
is.ArrayTimeByResourceBySize(x)
x |
A matrix (time x size). For |
value_name |
A string giving the human-readable name for the value. |
units |
A string giving the units (e.g. "1/g"). |
type |
The kind of quantity the values are, see |
params |
A |
An ArrayTimeByResourceBySize object behaves just like a regular matrix for
arithmetic operations and subsetting. It carries these lightweight
attributes:
value_name – a human-readable name for the value
(e.g. "Number density").
units – the units of the value (e.g. "1/g").
params – the MizerParams object that the value was computed from.
An ArrayTimeByResourceBySize object (inherits from matrix and
array).
is.ArrayTimeByResourceBySize() returns TRUE if x is an
ArrayTimeByResourceBySize object, FALSE otherwise.
print(), summary(), as.data.frame(), plot(), plot2(),
plotRelative(), addPlot(), animate()
nr <- NResource(NS_sim)
is.ArrayTimeByResourceBySize(nr)
summary(nr)
plot(nr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.