Learn R Programming

osmose (version 0.1.1)

getVar.osmose: GetVar method for osmose objects

Description

Get a variable from an osmose object.

Usage

# S3 method for osmose
getVar(object, var, type = "global", expected = FALSE, ...)

Arguments

object

Object of osmose class (see the read_osmose function).

var

Name of variable to extract. It could be: "biomass","abundance", "yield", "yieldN".

type

Type of the variable to extract. By default is type = "global".

expected

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.

Value

An array or a list containing the data.