I am creating a Shiny app where I would like to have the default of a numericInput be dependent on another default to a previously defined numericInput.
e.g.,
Here I would like the numericInput elements of (2) to be the reciprocal of (1), without having to specify values for value,min,max, and step beforehand:
(1) numericInput("obs1", "Label1", value = 10, min = 10, max = 20, step = 1)
(2) numericInput("obs2", "Label2", value = 1/10, min = 1/10, max = 1/20, step = 1)
Above (1) is the previously-defined numericInput.
Is there a simple way to do this?