powered by
## S3 method for class 'default': seqToHumanReadable(idx, delimiter="-", collapse=", ", ...)
vector
integer
character
seqToIntervals
print(seqToHumanReadable(1:10)) # "1-10" print(seqToHumanReadable(c(1:10, 15:18, 20))) # "1-10, 15-18, 20"
Run the code above in your browser using DataLab