knitr::opts_chunk$set(echo = TRUE)
library(pacman)
p_load(dplyr, kirkegaard)

miss_add_random: Add random missing data to a data frame

(df = data_frame(numbers = 1:10, letters = letters[1:10]))
(df = miss_add_random(df))

miss_amount: How much data is missing?

miss_amount returns three simple metrics for the amount of missing data: by cell, by case and by variable.

miss_amount(df)

miss_filter: Filter data frame by missing rows

miss_filter provides an easy way to filter a data frame by the amount of missing data in the rows.

miss_filter(df) #default is filter all cases with missing, same as na.omit



Deleetdk/kirkegaard documentation built on May 2, 2024, 7:12 p.m.