CLOSED_FORM$set_sym | R Documentation |
This function stores the user inputs as the updated values of symbols. List of symbol names and symbol types will be updated automatically. There is no protection for values that should not be modified, which may lead to error or loss of binding of some objects. Please use this function with caution.
CLOSED_FORM$set_sym(sym_name, sym_value)
sym_name |
Vector or List. A sequence of character symbol names. |
sym_value |
Vector or List. A sequence of symbol values. |
Return the object itself.
# Constant variable
a <- 1
# Random uniform variable
z <- closed_form(~2 + a)
z$compute()
# Update value for "a"
z$set_sym("a", 3)
z$compute()
# Update value for "+"
z$set_sym("+", list(function(a, b) a * b))
z$compute()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.