uncompress.default {wavethresh} | R Documentation |
Undo zero run-length encoding for a vector.
Description
This function inverts the action carried out by the
compress.default
function.
Usage
## Default S3 method:
uncompress(v, verbose=FALSE, ...)
Arguments
v |
The object to uncompress |
verbose |
Print an informative message whilst executing |
... |
Other arguments |
Details
The inverse of compress.default
Value
The uncompressed, reinstated, vector.
Author(s)
G P Nason
See Also
Examples
uncompress(compress(c(1, rep(0,99), 1)))
#[1] 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#[38] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#[75] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
[Package wavethresh version 4.7.2 Index]