Get a variable from an osmose
object.
# S3 method for osmose
get_var(object, what, how = c("matrix", "list"), expected = FALSE, ...)
Object of osmose
class (see the read_osmose
function).
Name of variable to extract. See Details.
How to return the object. Current options are "matrix" and "list".
A logical parameter. If TRUE
, the average over the
last dimensions will be performed (only if the output is an array).
Additional arguments of the function.
An matrix or a list containing the data.
what
can be any available variable contained on object
(e.g. biomass, abundance, yield, yieldN, etc).