gadgettime: Create a gadgettime object

View source: R/gadgettime.R

gadgettimeR Documentation

Create a gadgettime object

Description

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

Usage

gadgettime(file_name, path, missingOkay = FALSE)

Arguments

file_name

The name of the time file

path

The path to the gadget directory to read from

missingOkay

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

Value

A list of time components representing file

Examples

## Not run: 
path <- './cod-model'
# Read 'Modelfiles/time' time file, creating it if it doesn't exist
gadgettime('Modelfiles/time', path, missingOkay = TRUE)  

## End(Not run)

Hafro/rgadget documentation built on July 21, 2022, 8:38 a.m.