Missings

and the forcats package

Author

Steen Flammild Harsted

Published

January 10, 2024

1 Missing Data



Install the naniar package and load it

Use install.packages() to download the naniar package. When you have done that add library(naniar) to the code chunk where you call your libraries. Execute the line.



Explore missing values in starwars using

  • vis_miss()
  • gg_miss_upset()
  • What happens if you add , nsets = 6 inside gg_miss_upset()
  • naniar contains more useful functions. You can see them here
Code
vis_miss(starwars)
gg_miss_upset(starwars)