# Attach packages
library(groupdata2)
# Create a data frame
df <- data.frame(
"a" = c("a", "a", "b", "b", "c", "c"),
stringsAsFactors = FALSE
)
# Create list of starts
starts <- c("a", "e", "b", "d", "c")
# Find missing starts with skip_to numbers
find_missing_starts(df, starts, starts_col = "a")
# Find missing starts without skip_to numbers
find_missing_starts(df, starts,
starts_col = "a",
return_skip_numbers = FALSE
)
Run the code above in your browser using DataLab