View source: R/ArraySpeciesBySize-class.R
| ArraySpeciesBySize | R Documentation |
Many functions in mizer return two-dimensional arrays (species x size)
holding rates like encounter rate, feeding level, growth rate, mortality etc.
The ArraySpeciesBySize class wraps these arrays to provide convenient
print(), summary(), plot(), and as.data.frame() methods.
ArraySpeciesBySize(
x,
value_name = NULL,
units = NULL,
type = NULL,
params = NULL,
representation = c("point", "average")
)
is.ArraySpeciesBySize(x)
x |
A matrix (species x size). For |
value_name |
A string giving the human-readable name for the value. |
units |
A string giving the units (e.g. "g/year", "1/year"). |
type |
The kind of quantity the values are, see array_types:
|
params |
A |
representation |
Either |
An ArraySpeciesBySize object behaves just like a regular matrix for
arithmetic operations and subsetting. It carries a few lightweight
attributes:
value_name – a human-readable name for the value
(e.g. "Encounter rate").
units – the units of the rate (e.g. "g/year").
type – the kind of quantity the values are.
An ArraySpeciesBySize object (inherits from matrix and array).
is.ArraySpeciesBySize() returns TRUE if x is an
ArraySpeciesBySize object, FALSE otherwise.
print(), summary(), as.data.frame(), plot()
enc <- getEncounter(NS_params)
is.ArraySpeciesBySize(enc)
summary(enc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.