View source: R/data_management.R
duplicated2 | R Documentation |
base::duplicated determines which elements of a vector or data frame are duplicates of elements with smaller subscripts, and returns a logical vector indicating which elements (rows) are duplicates.
duplicated2(x, all = TRUE, ...)
x |
Numeric vector of centimeter. |
all |
Logical: if TRUE considers duplicated each observation present more than one time in the object, otherwise implement base::duplicated algorithm (considers duplicated the second, third and so on duplicated observation). |
... |
Other arguments passed to base::duplicated. |
This wrapper allows to find all duplicated obs.
A logical vector with duplicated marked as TRUE.
duplicated( c(1,0, 2, 0, 3, 2)) # from base R
duplicated2(c(1,0, 2, 0, 3, 2)) # from lbmisc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.