Learn R Programming

bggAnalytics (version 0.2.1)

.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 = ", ")

Value

Single string.

Arguments

vec

Atomic vector.

n_show

Positive integer.

collapse

Single string, how to collapse the given vector.