Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

uncompress.default

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

wavethresh

Wavelets Statistics and Transforms

v4.6.8
GPL (>= 2)
Authors
Guy Nason [aut, cre]
Initial release
2016-10-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.