Aan de slagGa gratis aan de slag

Filtering for conditions

You use the filter() verb to get only observations that match a particular condition, or match multiple conditions.

Deze oefening maakt deel uit van de cursus

Data Manipulation with dplyr

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

counties_selected <- counties %>%
  select(state, county, population)

counties_selected %>%
  # Filter for counties with a population above 1000000
  ___
Code bewerken en uitvoeren