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.

Usage
## S3 method for class 'default}(idx, delimiter="-", collapse=", ", ...)':
seqToHumanReadableundefined

idx{A vector of integer indices.}
  delimiter{A character string delimiter.}
  collapse{A character string used to collapse subsequences.}
  ...{Not used.}

[object Object]

print(seqToHumanReadable(1:10))  # "1-10"
  print(seqToHumanReadable(c(1:10, 15:18, 20)))  # "1-10, 15-18, 20"


attribute
Aliases
  • seqToHumanReadable.default
  • seqToHumanReadable
Documentation reproduced from package R.utils, version 0.5.5, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.