BaşlayınÜcretsiz Başlayın

Fix implicit missings using complete()

We are going to explore a new dataset, frogger.

This dataset contains 4 scores per player recorded at different times: morning, afternoon, evening, and late_night.

Every player should have played 4 games, one at each of these times, but it looks like not every player completed all of these games.

Use the complete() function to make these implicit missing values explicit

Bu egzersiz

Dealing With Missing Data in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

For the frogger dataset:

  • Use complete() from tidyr on the time and name variables to make implicit missing values explicit.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Print the frogger data to have a look at it
___

# Use `complete()` on the `time` and `name` variables to  
# make implicit missing values explicit
frogger_tidy <- ___ %>% ___(___, ___)
Kodu Düzenle ve Çalıştır