1. Learn
  2. /
  3. Courses
  4. /
  5. Case Studies: Building Web Applications with Shiny in R

Exercise

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.

Instructions

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).