apply_function: apply_function

Description Usage Arguments Value Examples

Description

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.

Usage

1
apply_function(input, output, session, variable = NULL)

Arguments

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.

Value

Server logic

Examples

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)

ardata-fr/Shiny-Modules-Tutorials documentation built on June 27, 2019, 4:20 p.m.