This function creates a reactive value similar to Shiny's reactive() function,
but also automatically stores the calculated value in the survey data.
Usage
sd_reactive(id, expr, blank_na = TRUE)
Arguments
- id
Character string. The id (name) of the value to be stored in the data.
- expr
An expression that calculates a value based on inputs
- blank_na
Logical. If TRUE, NA values are converted to empty strings. Default is TRUE.
Value
A reactive expression that can be called like a function