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