gadgetstock: Create a gadgetstock object

View source: R/gadgetstock.R

gadgetstockR Documentation

Create a gadgetstock object

Description

Create a gadgetstock object, from fresh or an existing file

Usage

gadgetstock(stock_name, path, missingOkay = FALSE)

Arguments

stock_name

The name of the stock, as

path

The path to the gadget directory to read from

missingOkay

If TRUE, return an empty gadgetstock object if file does not exist.

Value

A list of lists representing the gadget stock file

Examples

## Not run: 
path <- './cod-model'
# Read codmat from './cod-model', throw an error if it doesn't exist
gadgetstock('codmat', path, missingOkay = TRUE)  
# Read codimm stock / create a new one
gadgetstock('codimm', path, missingOkay = TRUE)  

## End(Not run)

bthe/rgadget documentation built on July 22, 2022, 7:24 a.m.