powered by
toRangeStr(x, range.sep = " - ", block.sep = ", ")
integer
character(1)
x
x = sample(1:10, 7) toRangeStr(x)
Run the code above in your browser using DataLab