seqToHumanReadable

0th

Percentile

Gets a short human readable string representation of an vector of indices

Gets a short human readable string representation of an vector of indices.

Keywords
attribute
Usage
## S3 method for class 'default':
seqToHumanReadable(idx, delimiter="-", collapse=", ", ...)
Arguments
idx
A vector of integer indices.
delimiter
A character string delimiter.
collapse
A character string used to collapse subsequences.
...
Not used.
See Also

seqToIntervals().

Aliases
  • seqToHumanReadable.default
  • seqToHumanReadable
Examples
print(seqToHumanReadable(1:10))  # "1-10"
  print(seqToHumanReadable(c(1:10, 15:18, 20)))  # "1-10, 15-18, 20"
Documentation reproduced from package R.utils, version 1.7.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.