Session Ready
Exercise

Add a slider input to select year

Slider inputs are great for numeric inputs, both when you'd like users to choose from a range of values and also when they should choose a static value from a set of options, but you want to be more creative than using a selectInput().

Adjust your app displaying top 10 names for a year by adding a slider to select a specific year available in babynames.

Instructions
100 XP
  • Add a slider input named "year" to let users select a year between 1900 and 2010, with a default of 1900.
  • Update server code to get the top 10 names for the selected year instead of 1900 only