Exercise

More exploration of the Gapminder data

To use the gapminder data in a Shiny app, you will often have to filter the dataset in order to retain only a subset of the rows. You can use the subset() function for that.

Instructions

100 XP

You are given a Shiny app that contains an empty text output. Your task is to:

  • Load the gapminder package.
  • Determine the population of France in year 1972 using the subset() function, and display that number in the text output (line 14).