| .to_num_from_complex | R Documentation |
A helper that wraps around a to_*() function to provide a standard way to
coerce complex numbers.
.to_num_from_complex(
x,
cast_fn,
to_type_obj,
x_arg = caller_arg(x),
call = caller_env(),
x_class = object_type(x)
)
x |
The argument to stabilize. |
cast_fn |
|
to_type_obj |
An empty object of the target type (e.g., |
x_arg |
|
call |
|
x_class |
|
x coerced to the target class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.