Rdocumentation
powered by
Learn R Programming
assertive (version 0.1-7)
coerce_to: Coerce variable to a different class.
Description
Coerce the input to a different class, with a warning.
Usage
coerce_to(x, target_class, .xname = get_name_in_parent(x))
Arguments
x
Input to coerce.
target_class
The desired class of x.
.xname
Not intended to be used directly.
Value
The input
x
after attempted coersion to the target class.
See Also
is
and
as
.