qd_read | R Documentation |
Reads an object that was saved to disk in the qdata
format.
qd_read(file, use_alt_rep = FALSE, validate_checksum=FALSE, nthreads = 1L)
file |
The file name/path. |
use_alt_rep |
Use ALTREP when reading in string data (default |
validate_checksum |
Whether to validate the stored checksum in the file (default |
nthreads |
The number of threads to use when reading data (default: |
The object stored in file
.
x <- data.frame(int = sample(1e3, replace=TRUE),
num = rnorm(1e3),
char = sample(state.name, 1e3, replace=TRUE),
stringsAsFactors = FALSE)
myfile <- tempfile()
qd_save(x, myfile)
x2 <- qd_read(myfile)
identical(x, x2) # returns true
# qdata support multithreading
qd_save(x, myfile, nthreads=1)
x2 <- qd_read(myfile, nthreads=1)
identical(x, x2) # returns true
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.