read_gadget_stockfiles: Read Gadget stockfiles

Description Usage Arguments Value Examples

Description

Get stockfiles used in a Gadget model

Usage

1
read_gadget_stockfiles(stockfiles, main = NULL, path = NULL)

Arguments

stockfiles

Character vector of stocknames present in Gadget model

main

Optional. A list of class gadget_main

path

Optional. Character vector of path to the directory where Gadget files are located

Value

A list of class gadget_stocks consisting of gadget_stock one or more gadget_stock objects

Examples

1
2
3
4
path <- system.file(gad_mod_dir, package = "gadgetSim")
main <- read_gadget_main(path = gad_mod_dir)
stocks <- read_gadget_stockfiles(main = main, path = path)
head(stocks[[1]])

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