View source: R/ordered.clusters.R
ordered.clusters | R Documentation |
ordered.clusters
determines if identical elements of a vector appear
in contiguous clusters, and returns TRUE
if the do and FALSE
otherwise.
ordered.clusters(id)
id |
a vector |
The function returns TRUE if the elements appear in contiguous clusters and FALSE otherwise
Claus Ekstrom claus@ekstroem.dk with suggestions from Peter Dalgaard.
duplicated
x <- c(1, 1, 1, 2, 2, 3, 4, 1, 5, 5, 5)
ordered.clusters(x)
ordered.clusters(sort(x))
ordered.clusters(x[order(x)])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.