View source: R/ArrayTimeBySpeciesBySize-class.R
| ArrayTimeBySpeciesBySize | R Documentation |
Some functions in mizer return three-dimensional arrays (time x species x
size) holding quantities like fishing mortality, feeding level, or predation
mortality through time. The ArrayTimeBySpeciesBySize class wraps these
arrays to provide convenient print(), summary(), plot(),
animate(), and as.data.frame() methods.
ArrayTimeBySpeciesBySize(
x,
value_name = NULL,
units = NULL,
type = NULL,
params = NULL,
representation = c("point", "average")
)
is.ArrayTimeBySpeciesBySize(x)
x |
A 3D array (time x species x size). For
|
value_name |
A string giving the human-readable name for the value. |
units |
A string giving the units (e.g. "1/year"). |
type |
The kind of quantity the values are, see |
params |
A |
representation |
Either |
An ArrayTimeBySpeciesBySize object behaves just like a regular array for
arithmetic operations and subsetting. It carries these lightweight attributes:
value_name – a human-readable name for the value
(e.g. "Fishing mortality").
units – the units of the value (e.g. "1/year").
type – the kind of quantity the values are.
params – the MizerParams object that the value was computed from.
An ArrayTimeBySpeciesBySize object (inherits from array).
is.ArrayTimeBySpeciesBySize() returns TRUE if x is an
ArrayTimeBySpeciesBySize object, FALSE otherwise.
print(), summary(), as.data.frame(), plot(),
animateSpectra()
fmort <- getFMort(NS_sim)
is.ArrayTimeBySpeciesBySize(fmort)
summary(fmort)
plot(fmort, time = 2007)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.