Dear All,
how to update the output data.frame "DF" values depending on the user input from shiny. so I want
user to import values of Q1, Q2
run the "mod0= function (Q1,Q2)
result data.frame "C"
how to make the new "DF" data.frame values update/react to the Q1,Q2 new values from shiny ui?
here is the code:
in ui.R I have:
numericInput("Q1", "Parking ", value= 1.2, min = 0, max = 1, step = 0.1),
numericInput("Q2", "ratio", value = 0.5,min = 0, max = 1, step = 0.1)
in server.R
I have:
mod0 = function(Q1,Q2){ #where Q1 and Q2 are numeric input in the shiny app ui
A= Q1+2
B=Q2+A
C <- data.frame(A,B)
return (C)
}
DF <- mod0(1,2)
DF
#> A B
#> 1 3 5
my question is how to update the DF values with the new values from shiny numeric input user interface?
I would really appreciate your help
Best Regards
Ahmed Ali
PhD candidate
Chung Ang University