Select helper
Dalam video, Anda mempelajari select helper starts_with(). Select helper lainnya adalah ends_with(), yang mencari kolom-kolom yang berakhiran dengan string tertentu.
Latihan ini adalah bagian dari kursus
Manipulasi Data dengan dplyr
Petunjuk latihan
- Pilih kolom
state,county,population, dan semua kolom yang berakhiranwork. - Saring hanya county di mana setidaknya 50% populasi bekerja di sektor publik.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
counties %>%
# Select the state, county, population, and those ending with "work"
___
# Filter for counties that have at least 50% of people engaged in public work
___