Simplify String with List of Numbers Grouped by Dashes
Arguments
- x
atomic vector
Value
length-1 character string giving a sorted list of numbers
with contiguous numbers grouped by dashes.
Examples
group_with_dash(c("3840", "34", "2", "3", "1", "33", '5-50'))
#> NULL
group_with_dash(group_with_dash(c("3840", "34", "2", "3", "1", "33", '5-50')))
#> NULL