| .check_scalar | R Documentation |
Checks if an object is a scalar, allowing for NULL and zero-length vectors
if specified.
.check_scalar(
x,
allow_null = TRUE,
allow_zero_length = TRUE,
x_arg = caller_arg(x),
call = caller_env(),
x_class = object_type(x)
)
x |
The object to check. |
allow_null |
|
allow_zero_length |
|
x_arg |
|
call |
|
x_class |
|
NULL, invisibly, if x passes the check.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.