GetGroupFactor will split a numeric vector according to a specified gap value. This is often a useful tool and therefore exported to the namespace.
Difference between two consecutive values at which a split is generated.
A factor vector of length(x) indicating the diffferent groups in x.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.