qd_deserialize | R Documentation |
Deserializes a raw vector to an object using the qdata
format.
qd_deserialize(input,
use_alt_rep = qopt("use_alt_rep"),
validate_checksum = qopt("validate_checksum"),
nthreads = qopt("nthreads"))
input |
The raw vector to deserialize. |
use_alt_rep |
Use ALTREP when reading in string data (the initial value is FALSE). |
validate_checksum |
Whether to validate the stored checksum in the file (the initial value is FALSE). |
nthreads |
The number of threads to use when reading data (the 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.