1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Case Studies: Building Web Applications with Shiny in R

Connected

अभ्यास

Select a continent to view

When exploring a dataset, it is often useful to experiment with filtering more than one variable. For example, you might be interested in only seeing data for African countries that had a specific life expectancy.

निर्देश

100 XP

Add a select input that allows the user to select a specific continent to view. Specifically:

  • Add a select input to the UI with ID "continent" and a label of "Continent".
  • Inside the render function, use the continent input value to only select data from the chosen continent (line 21).