Checks whether specific colnames are missing from a data frame.
Usage
check_missing_colnames(x, colnames, x_name = substitute(x), error = TRUE)
Examples
data <- data.frame(x = 1, y = 2, z = 0)
check_missing_colnames(data, c("y", "x", "a"), error = FALSE)
#> Warning: `check_missing_colnames()` was deprecated in checkr 0.5.1.
#> ℹ Please use chk::chk_not_subset(names()) instead.
#> Warning: data must not have columns 'x' and 'y'
check_missing_colnames(data, "a", error = FALSE)