Converts a vector of integers into a compact range string representation.
Examples
x = sample(1:10, 7)
toRangeStr(x)
#> [1] "1 - 6, 8"
Converts a vector of integers into a compact range string representation.
x = sample(1:10, 7)
toRangeStr(x)
#> [1] "1 - 6, 8"