get_stock_info: Functions to retrieve basic information about Gadget stocks

Description Usage Arguments Value Examples

Description

Functions to retrieve basic information about Gadget stocks

Usage

1
2
3
4
5
6
7
8
9
get_stock_anything(stocks, what2get, item = NULL)

get_stock_ages(stocks)

get_stock_areas(stocks)

get_stocknames(stocks)

get_stock_lengths(stocks)

Arguments

stocks

A list of class gadget_stock or a list of class gadget_stocks containing one (or typically more) lists of class gadget_stock

what2get

Character vector of which component of a stockfile to get.

item

Optional. A character vector of a specific item within a Gadget stockfile component to retrieve

Value

A vector of values found in the Gadget stock file possibly coerced to numeric if appropriate

Examples

1
2
3
4
5
6
7
8
cod <- read_gadget_stockfiles("cod", path = gad_mod_dir)
get_stock_ages(cod)
get_stock_areas(cod)
get_stocknames(cod)
get_stock_lengths(cod)
get_stock_anything(cod, "spawning")
get_stock_anything(cod, "spawning", item = "recruitment")
get_stock_anything(cod, "dl")

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.