Introduction to data frames
Data frame structure
Accessing columns in a data frame
Accessing rows of a data frame
Accessing rows and columns combined in a data frame
Data frame analysis
Summary
32. Exercise 3

Instruction

Perfect! Let's raise the bar just a bit.

Exercise

Now, display summary statistics of GDP for countries in WESTERN EUROPE. Use the countries_gdp data frame.

Stuck? Here's a hint!

In order to select only these countries that are in WESTERN EUROPE, you have to filter the region column:

countries_gdp[countries_gdp$region == "WESTERN EUROPE", ...]

In order to display the statistics regarding the GDP, you have to select the gdp_millions column.