View source: R/ArraySpeciesBySize-class.R
| species_size_range_mask | R Documentation |
A rate array is defined on the whole size grid, but a species only occupies
the part of it between its w_min and w_max. The values outside that range
are arithmetic rather than biology — the encounter rate a 40 kg Sprat would
have — so plot() and summary() leave them out unless asked for them with
all.sizes = TRUE. This is the single definition of which classes those are,
so that the two cannot disagree about what the array contains.
species_size_range_mask(params, w, species)
params |
A MizerParams object, or |
w |
The size represented by each column, from
|
species |
Character vector of the species, one per row. |
A species that the model does not know about — a row whose name is not in
species_params, or any row at all when the array carries no params — has
no range to be outside of, so all of its size classes are kept.
A logical matrix (species x size), TRUE where the size class lies
inside that species' size range.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.