assertChoice | R Documentation |
Assert that an object is within a certain oprtions.
assertChoice(
x,
choices,
length = NULL,
na = FALSE,
null = FALSE,
unique = FALSE,
named = FALSE,
call = parent.frame(),
msg = NULL
)
x |
Variable to check. |
choices |
Options that x is allowed to be. |
length |
Required length. If |
na |
Whether it can contain NA values. |
null |
Whether it can be NULL. |
unique |
Whether it has to contain unique elements. |
named |
Whether it has to be named. |
call |
Call argument that will be passed to |
msg |
Custom error message. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.