r - Dependence between conditionalPanels shiny -
I am trying to select a value inside a list in the app below, in the panel, I can see when I select a list, but the output of the double selection does not work
ui.R
Library (luminous) sampList & lt; - List (1: 3, 1: 4), 1: 6) Xaienuai (Select the methods to compare the diagram (HeadPanel), SidebarPaneel (Velpainel (Selection Input ("Method 1", "Method 1", C (Method 1 = "method 1", method 2 = "method 2", method 3 = "method 3")), conditional panel (condition = "input method 1 == 'method 1'", selection input ("member" 1 "," member ", insert [[1]], conditional panel (condition =" input method 1 == 'method2' ", select input (" member1 "," member ", samplist [2] ]), Conditional panel (condition = "input. Method 1 == 'method 3'", select input ("Member1", "Member", Written [[3]])), MainPanel (Text Input ('Table')))
server.r
In this example, when I select "method 1" I see the correct vector (1: 3) and if I select a number, then I see the correct output. (If an app is running then the output is printed), but if I other "though Area "chooses, does not splash selected within the vector, an estimate?
The question was answered by Stephen Laurent.
You can call them method1_member, method2_member,
... and then you can find it is by input [[paste 0 (input $ method 1, "_member")]]
Comments
Post a Comment