Learn R Programming

rapsimng (version 0.4.4)

remove_model: Remove a model with new values

Description

Remove a model with new values

Usage

remove_model(l, path)

Value

The modified list with new value

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

Examples

Run this code
wheat <- read_apsimx(system.file("extdata/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

Run the code above in your browser using DataLab