Get a variable from an osmose object.
# S3 method for osmose
getVar(object, var, type = "global", expected = FALSE, ...)Object of osmose class (see the read_osmose function).
Name of variable to extract. It could be: "biomass","abundance", "yield", "yieldN".
Type of the variable to extract. By default is type = "global".
A logical parameter. TRUE if the average over the
last dimensions should be performed if the output is an array. By default is
expected = FALSE.
Additional arguments of the function.
An array or a list containing the data.