gadget_update.gadgettime: Update gadget time components in a time file

View source: R/gadgettime.R

gadget_update.gadgettimeR Documentation

Update gadget time components in a time file

Description

Replace and/or append new time comonents to an existing file

Usage

## S3 method for class 'gadgettime'
gadget_update(gf, ...)

Arguments

gf

The gadgetfile object to update

...

Valid options for a time file; firstyear, firststep, lastyear, laststep, notimesteps. See gadget user guide

Examples

## Not run: 
library(magrittr)  # import %>% function
path <- './model'
gadgettime('time', path, missingOkay = TRUE) %>%
   gadget_update(firstyear = 1990, lastyear = 2000) %>% 
   write.gadget.file(path)
   
## End(Not run)

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