check_categorical | R Documentation |
Check 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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.