R shiny: changeable input selecter (user shoud be able to use numeric input or slider for the same value)


I started to wrote the following app:

The code:

The target is to present the basic theory of hiphoteses tests and create a web app, where beginner business student may solve their quetions.

The issue is that is there a way to make the input type changeable on a page:
For the number of the sample I want a slider, to be able to put any number for solving exersice, but also a slider, to present how the test-statistic changes when you start to increase the size slowly.

Any idea to solve it? (No, I dont want open a new page for that)

Thank you for answer in advance,

Maybe https://mastering-shiny.org/action-dynamic.html#dynamic-visibility will help?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.