uncompress.default: Undo zero run-length encoding for a vector.

uncompress.defaultR 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

wavethresh documentation built on Nov. 16, 2022, 5:16 p.m.