R: Undo zero run-length encoding for a vector.

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

`compress.default`, `uncompress`

### 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.6.8 Index]