vec2range | R Documentation |
A function which converts a one-dimensional vector into a 2-column matrix of pairwise ranges that represent the range of numbers between subsequent values
vec2range(vec, with.max = NULL)
vec |
A vector of integers |
with.max |
(optional) A number to use as the end point of the last range |
matrix whose rows contain start-end pairs from original vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.