Undo zero run-length encoding for a vector.
This function inverts the action carried out by the
compress.default
function.
## Default S3 method: uncompress(v, verbose=FALSE, ...)
v |
The object to uncompress |
verbose |
Print an informative message whilst executing |
... |
Other arguments |
The inverse of compress.default
The uncompressed, reinstated, vector.
G P Nason
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
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.