Description Usage Arguments See Also Examples
Convenience functions to test uniqueness, or to return the number of unique/duplication values, or a unique sorted vector.
The which.unique function returns a vector of indices.
This will produce a vector of unique values, if the original vector is subsetted using the indices.
1 2 3 4 5 6 7 8 9 | is.each.equal (v)
is.each.unique (v)
n.unique (v)
n.duplicated (v)
which.unique (v)
usv (v)
|
v |
An integer/numeric vector. |
Sequence Properties
Optimization-Related Functions
Other Sequence Functions
1 2 3 4 | x <- c (2, 2, 1, 1, 10, 12)
n.unique (x)
usv (x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.