Description Usage Arguments Value Examples
Group one-dimensional data into clusters of contiguous points
1 |
x |
Numeric vector of points to be grouped into clusters |
gap |
Size of gap that separates two neighboring clusters |
frac |
Size of gap that separates two neighboring clusters expressed as a fraction of the range of ‘x’ |
Returns an integer vector that is aligned with ‘x’ and contains the cluster for the associated element in ‘x’. NA values in ‘x’ will have NA values in the resulting vector.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.