decompress | R Documentation |
Decompresses the provided compressed raw data in a single step.
decompress(data, wbits = 0)
data |
Compressed raw data to be decompressed. |
wbits |
The window size bits parameter. Default is 0. |
The decompress
function offers a streamlined approach to decompressing
raw data. By abstracting the creation of a decompression object, decompressing
the data, and flushing the buffer into one function call, it provides a hassle-free
way to retrieve original data from its compressed form. This function is designed
to work seamlessly with data compressed using the compress
function or
any other zlib-based compression method.
A raw vector containing the decompressed data.
original_data <- charToRaw("some data")
compressed_data <- compress(original_data)
decompressed_data <- decompress(compressed_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.