zstd_compress_raw | R Documentation |
Compresses to a raw vector using the zstd algorithm. Exports the main zstd compression function.
zstd_compress_raw(data, compress_level)
data |
Raw vector to be compressed. |
compress_level |
The compression level used. |
The compressed data as a raw vector.
x <- 1:1e6
xserialized <- serialize(x, connection=NULL)
xcompressed <- zstd_compress_raw(xserialized, compress_level = 1)
xrecovered <- unserialize(zstd_decompress_raw(xcompressed))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.