update.params_pansim | R Documentation |
update parameters within a list of parameters
## S3 method for class 'params_pansim'
update(object, ..., delete_regex = NULL, .list = FALSE)
object |
a |
... |
a list of named elements, or a single named list if |
delete_regex |
vector of regular expressions to remove |
.list |
treat the first argument as a named list? |
pp <- list(params = c(a=2,b=1))
object <- c(a=1, b=0)
class(object) <- "params_pansim"
update(object,pp,.list=TRUE)
pp2 <- list(params = c(a=2))
update(object,pp, .list=TRUE)
update(object, a=2)
update(object, a=2, b=1)
update(object, cc1=2, cc2=3)
update(object, delete_regex="cc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.