Aan de slagGa gratis aan de slag

Explore a nested cell

In the first exercise, you successfully created a nested data frame gap_nested. The data column contains tibbles for each country. In this exercise, you will explore one of these nested chunks.

Deze oefening maakt deel uit van de cursus

Machine Learning in the Tidyverse

Cursus bekijken

Oefeninstructies

  • Extract the nested data for Algeria and store this as algeria_df.
  • Calculate the following summary stats for Algeria's population: min(), max() and mean().

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Extract the data of Algeria
algeria_df <- ___$data[[___]]

# Calculate the minimum of the population vector
min(___)

# Calculate the maximum of the population vector
max(___)

# Calculate the mean of the population vector
mean(___)
Code bewerken en uitvoeren