read_gadget_stock_std: Read the output from a StockStdPrinter printfile component

Description Usage Arguments Value Examples

Description

This function reads specifically the output from a StockStdPrinter printfile component from Gadget and formats the output into a useable data.frame in R

Usage

1
read_gadget_stock_std(output_dir, files = NULL, path = NULL)

Arguments

output_dir

Character. Path to the directory where output is housed

path

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

Value

data.frame of the output from a StockStdPrinter printfile component

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
path <- system.file(gad_mod_dir, package = "gadgetSim")
make_gadget_printfile(stock_std = list(stockname = "cod",
                      printfile = "printfile"), main = "WGTS/main.final",
                      file = "WGTS/printfile", path = path,
                      aggfile_dir = "WGTS/aggfiles")
call_gadget(switches = list(s = TRUE, i = "WGTS/params.final",
                            main = "WGTS/main.final"),
            path = path)
read_gadget_stock_std("out", path = paste("WGTS", path, sep = "/"))

## End(Not run)

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