Deserializes a raw vector to an object using the qdata format.
The raw vector to deserialize.
Use ALTREP when reading in string data (default: qopt("use_alt_rep"), initial value is FALSE).
Whether to validate the stored checksum in the file (default: qopt("validate_checksum"), initial value is FALSE).
The number of threads to use when reading data (default: qopt("nthreads"), initial value is 1L).
The deserialized object.
x <- data.frame(int = sample(1e3, replace=TRUE),
num = rnorm(1e3),
char = sample(state.name, 1e3, replace=TRUE),
stringsAsFactors = FALSE)
xserialized <- qd_serialize(x)
x2 <- qd_deserialize(xserialized)
identical(x, x2) # returns TRUE
#> [1] TRUE