gadgetlikelihood: Create a gadgetlikelihood object

View source: R/gadgetlikelihood.R

gadgetlikelihoodR Documentation

Create a gadgetlikelihood object

Description

Create a likelihood file object, from fresh or an existing file.

Usage

gadgetlikelihood(file_name, path, missingOkay = FALSE)

Arguments

file_name

The name of the likelihood file

path

The path to the gadget directory to read from

missingOkay

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

Value

A list of likelihood components representing file

Examples

path <- './cod-model'
# Read 'likelihood' likelihood file, creating it if it doesn't exist
gadgetlikelihood('likelihood', path, missingOkay = TRUE)  

gadget-framework/rgadget documentation built on July 20, 2022, 12:16 p.m.