
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'default':
seqToHumanReadable(idx, delimiter="-", collapse=", ", ...)
character
string delimiter.character
string used to collapse subsequences.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