View source: R/ArrayTimeBySpecies-class.R
| ArrayTimeBySpecies | R Documentation |
Some functions in mizer return two-dimensional arrays (time x species)
holding quantities like biomass, abundance, or yield rate through time.
The ArrayTimeBySpecies class wraps these arrays to provide convenient
print(), summary(), plot(), and as.data.frame() methods.
ArrayTimeBySpecies(
x,
value_name = NULL,
units = NULL,
type = NULL,
params = NULL
)
is.ArrayTimeBySpecies(x)
x |
A matrix (time x species). For |
value_name |
A string giving the human-readable name for the value. |
units |
A string giving the units (e.g. "g", "g/year"). |
type |
The kind of quantity the values are, see |
params |
A |
An ArrayTimeBySpecies 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. "Biomass").
units – the units of the value (e.g. "g", "g/year").
params – the MizerParams object that created the values.
An ArrayTimeBySpecies object (inherits from matrix and array).
is.ArrayTimeBySpecies() returns TRUE if x is an
ArrayTimeBySpecies object, FALSE otherwise.
print(), summary(), as.data.frame(), plot()
bio <- getBiomass(NS_sim)
is.ArrayTimeBySpecies(bio)
summary(bio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.