Description Usage Arguments Value Examples
This function has to be set in the Server part of a shiny application It add a windows containing a radioButton to apply a function on a numeric vector.
1 | apply_function(input, output, session, variable = NULL)
|
input |
Not a real parameter, should not be set manually. Done by callModule automatically. |
output |
Not a real parameter, should not be set manually. Done by callModule automatically. |
session |
Not a real parameter, should not be set manually. Done by callModule automatically. |
variable |
Numeric. Vector containing dataset to apply function on. |
Server logic
1 2 3 4 5 6 7 8 9 | ## Not run:
# In UI :
apply_functionUI(id = "mod2")
# In Server
data_module2 <- callModule(module = apply_function,
id = "mod2",
variable = reactive(dataset$data_var_x))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.