dups | R Documentation |
Extensions of duplicated
. Logically and numerically index duplicate values.
dups(...)
idups(x, int = F)
... |
One or more atomic vectors to be evaluated for duplicated values. |
x |
An atomic vec. |
int |
|
idups | Indexes all elements of x that are duplicates of its earlier element, either as a logical vector of the same length as x (when int = FALSE )
or as an integer vector whose length is the same as the number of elements in x that are duplicates of earlier elements (when int = TRUE ). |
dups | Atomizes ... , then reduce the resulting vector to contain one copy of each duplicated element. |
A logical vector (when int = FALSE)
idups
An integer vector (when int = TRUE
)
idups
An atomic vector
dups
dups(0:5, 5:10, 10:15, 15:20)
idups(c(0:5, 5:10, 10:15, 15:20))
idups(c(0:5, 5:10, 10:15, 15:20), int = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.