R/validation.R
check_categorical.RdCheck to see if a vector is categorical (character or string)
check_categorical( x, any.missing = TRUE, all.missing = TRUE, len = NULL, min.len = NULL, max.len = NULL, ... ) assert_categorical( x, any.missing = TRUE, all.missing = TRUE, len = NULL, min.len = NULL, max.len = NULL, ..., .var.name = vname(x), add = NULL ) test_categorical(x, ...)
| x | a vector of things |
|---|---|
| any.missing | are vectors with missing values allowed? Default is |
| all.missing | are vectors with missing values allowed? Default is |
| len | expected length of |
| min.len | minimum length for |
| max.len | maximum length for |
| ... | dots |