A level name must be a non-empty, non-NA string that is a syntactically
valid R name (so it can be used as a data.frame column without quoting).
Examples
is_valid_level(c("COUNTRY", "reg32", "", "2bad"))
#> [1] TRUE TRUE FALSE FALSE
A level name must be a non-empty, non-NA string that is a syntactically
valid R name (so it can be used as a data.frame column without quoting).
is_valid_level(c("COUNTRY", "reg32", "", "2bad"))
#> [1] TRUE TRUE FALSE FALSE