This acts similar to toString function, but it tries to
make the string as short as possible by squeezing sequences of integers into
boundary values only. Please see the examples section. unsqueez
reverses this operation.
Usage
squeeze(integers)
unsqueeze(strings, strict = FALSE)
Value
squeeze returns a vector of characters, unsqueeze
returns a list of numerics or a numeric vector.
Arguments
integers
a numeric vector of integers.
strings
a character vector of strings, preferably outputs of
squeeze.
strict
a logical value, decides whether the output should be strictly
a list. If FALSE and the strings is a single string, the
function returns an atomic vector instead.