Description Usage Arguments Examples
sVariable
defines a function that acts as a global
static variable.
1 |
default |
default value for the static variable. |
1 2 3 4 5 6 7 8 9 | # define variable
x <- sVariable(1)
# get value (default)
x()
# set new value: return old value
old <- x(3)
old
# get new value
x()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.