# NOT RUN {
data(lv)
parms(lv)
parms(lv) <- c(k1 = 0.2, k2 = 0.5, k3 = 0.3)
parms(lv)["k2"] <- 0.5
data(conway)
parms(conway)
parms(conway)$srv <- c(2, 2)
parms(conway)
## add a new named parameter value
parms(lv)["dummy"] <- 1
## remove dummy parameter
parms(lv) <- parms(lv)[names(parms(lv)) != "dummy"]
## simulation and extraction of outputs
lv <- sim(lv)
o <- out(lv)
## remove outputs from object
out(lv) <- NULL
## store object persistently to the disk
# }
# NOT RUN {
save(lv, file = "lv.Rdata") # in binary form
dput(as.list(lv), file = "lv-list.R") # in text form
# }
Run the code above in your browser using DataLab