Aan de slagGa gratis aan de slag

Using complete() and fill() together

Now let's put it together!

Use complete() and fill() together to fix explicit and implicitly missing values in the frogger dataset.

Deze oefening maakt deel uit van de cursus

Dealing With Missing Data in R

Cursus bekijken

Oefeninstructies

  • Use fill() and complete() to correctly fill and complete the values in the data so we went up with a dataset that has 5 names, all completed, each with 4 times filled in.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

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

# Correctly fill() and complete() missing values so that our dataset becomes sensible

___ %>% 
  fill(___) %>%
  ___(___, ___)
Code bewerken en uitvoeren