child | R Documentation |
Child objects inherit attributes of parent but with a new run_id
. The control
file will be inherited too with $TABLEs updated.
child(m, run_id = NA_character_, type = "execute", parent = m, silent = FALSE)
m |
Parent nm object. |
run_id |
Character. New |
type |
Character (default = |
parent |
Optional nm object (default = |
silent |
Logical (default = |
Specifying parent
will force parent to be different from m
. This
is useful in piping when a parent object is modified prior to being used in
the child object.
An new nm object with modified parent_*
fields updated to be the
*
fields of the parent object, m
.
exdir <- system.file("extdata", "examples", "theopp", package = "NMproject") m1 <- new_nm(run_id = "m1", based_on = file.path(exdir, "Models", "ADVAN2.mod"), data_path = file.path(exdir, "SourceData", "THEOPP.csv")) m2 <- m1 %>% child("m2") nm_diff(m2, m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.