Description Usage Arguments Details Value See Also Examples
Determines which elements of a vector or data frame are duplicates of other elements, and returns either a logical vector indicating which elements (rows) are duplicates, or the duplicated elements (rows) themselves.
1 | duplicates(x, xret = FALSE, ...)
|
x |
a vector or a data frame or an array or NULL. |
xret |
logical, default |
... |
additional arguments passed to
|
Behavior nearly identical to duplicated, except
returns ALL duplicated elements, not simply the first.
Numeric vector indexing rows (sample units) in spe1 which
are nearest compositional neighbors of spe2. The order
corresponds to row order in spe2.
duplicated, and
https://stackoverflow.com/questions/7854433/.
1 2 3 4 5 6 7 8 9 | x <- c('a','b','c','c','c')
y <- data.frame(x, y=c(1,2,4,4,5))
z <- as.matrix(y)
duplicates(x) # duplicate_s_
duplicated(x) # compare with duplicate_d_
duplicates(y)
duplicated(y)
duplicates(z)
duplicated(z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.