| .stabilize_cls_scalar | R Documentation |
A helper used by the stabilize_*_scalar() functions to provide a standard
set of checks.
.stabilize_cls_scalar(
x,
to_cls_scalar_fn,
...,
to_cls_scalar_args = list(),
check_cls_value_fn = NULL,
check_cls_value_fn_args = list(),
allow_null = TRUE,
allow_zero_length = TRUE,
allow_na = TRUE,
x_arg = caller_arg(x),
call = caller_env(),
x_class = object_type(x)
)
x |
The argument to stabilize. |
to_cls_scalar_fn |
|
... |
Arguments passed to methods. |
to_cls_scalar_args |
|
check_cls_value_fn |
|
check_cls_value_fn_args |
|
allow_null |
|
allow_zero_length |
|
allow_na |
|
x_arg |
|
call |
|
x_class |
|
x as a scalar of the target class with all checks passed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.