remove_model: Remove a model with new values

Description Usage Arguments Value Examples

View source: R/modify.R

Description

Remove a model with new values

Usage

1
remove_model(l, path)

Arguments

l

the list of apsimx file

path

If numeric, the path returned by search_path or search_node. If character, the path supported by apsimx

Value

The modified list with new value

Examples

1
2
3
4
5
wheat <- read_apsimx(system.file("Wheat.json", package = "rapsimng"))
a <- search_path(wheat, '[Wheat].Phenology.ThermalTime')
wheat_new <- remove_model(wheat, a$path)
b <- search_path(wheat_new, '[Wheat].Phenology.ThermalTime')
b

rapsimng documentation built on March 30, 2021, 5:13 p.m.