.compress: Compress vector into single string
Description
Returns string which shows n_show
first elements and vec
and
amount of truncated elements.
Usage
.compress(vec, n_show = 5, collapse = ", ")
Arguments
- vec
Atomic vector.
- n_show
Positive integer.
- collapse
Single string, how to collapse the given vector.