View source: R/specification.R
| update_definition | R Documentation |
Update one variable definition
update_definition(
specification,
variable,
formula = NULL,
variance = NULL,
distribution = NULL,
link = NULL
)
specification |
A |
variable |
Variable to update. |
formula, variance, distribution, link |
Replacement values. |
An updated simulab_spec base data.frame.
specification <- define_variables(
define_variable("a", formula = "0", variance = "1", distribution = "normal")
)
update_definition(specification, variable = "a", formula = "5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.