Description Usage Arguments Details See Also Examples
Finds values that occur exactly twice in a vector.
1 | duplicate(x)
|
x |
A vector. |
Returns the duplicated values in the same order that they would be
returned in a call to orphan
. This fundamentally
differs from duplicated
, which returns
a logical vector that is TRUE
when it runs into any but
the first occurrence of a value (and is therefore dependent on
the direction of testing of the vector).
unique
for similar output, and
duplicated
for the underlying calculations
1 |
[1] NA 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.