Validate if two columns are valid Name-Level pair.
validateNameLevel(
x,
prefix,
validation = "error",
empty = TRUE,
nm = deparse1(substitute(x), backtick = TRUE),
call = parent.frame()
)A tibble.
Prefix for the name-level pair, e.g. 'strata' for strata_name-strata_level pair.
Either 'error', 'warning' or 'message'.
Whether it can be empty.
Name to use in error messages. Defaults to the expression supplied
to x.
Will be used by cli to report errors.