cereal_decode {cereal} | R Documentation |
Convert a JSON-serialized prototype to a vctrs prototype
Description
Create a vctrs::vec_ptype()
from a JSON-serialized prototype created with
cereal_encode()
.
Usage
cereal_decode(x)
Arguments
x |
An object with class "cereal_*", such as "cereal_integer" or "cereal_factor" |
Value
A vector of zero length, such as integer()
or vctrs::new_factor()
Examples
cereal_decode(structure(list(), class = "cereal_integer"))
cereal_decode(structure(list(), class = "cereal_Date"))
[Package cereal version 0.1.0 Index]