formatSetStrings | R Documentation |
Format a vector of numbers into a string of ranges
formatSetStrings(vec)
vec |
A vector of numbers |
Formatted string of ranges
Lifted from https://stackoverflow.com/questions/16800803/
formatSetStrings(c(1,2,3,5,6,7,8))
formatSetStrings(c(8,7,6,5,3,2,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.