Check that all names are among column names
check_all_colnames.Rd
Check that all names are among column names
Arguments
- df
(
data.frame
)- x
(
character
) the names of the columns to be checked.- null_ok
(
flag
) canx
be NULL.- qualifier
(
string
) to be returned if the check fails.
Examples
check_all_colnames(mtcars, c("mpg", "new", "hoho"), qualifier = "first test:")
#> [1] "first test: Expected column names: new, hoho not in mtcars"