| arr2int | R Documentation |
Takes a vector of integer values, sorts them, groups consecutive values into
intervals and returns a human-readable string. For example,
c(1, 5, 6, 7, 8, 20, 23, 24, 25) becomes "1, 5-8, 20, 23-25".
arr2int(x)
x |
a numeric vector of integer values. |
a character string with the compact representation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.