class_pred
vector to a specified typeCast a class_pred
vector to a specified type
# S3 method for class_pred
vec_cast(x, to, ...)
Vectors to cast.
Type to cast to. If NULL
, x
will be returned as is.
For vec_cast_common()
, vectors to cast. For
vec_cast()
and vec_restore()
, these dots are only for future
extensions and should be empty.