Description Usage Arguments Value Examples
For internal use only. It returns only rows corresponding to
those groups where the number of rows > 1L. This is equivalent to doing
DT[, if (.N>1L) .SD, by=c(...)]
.
1 | strictly_nonunique(x, cols = names(x))
|
x |
A |
cols |
Character vector of column names (from |
A data.table
.
1 2 3 4 5 6 7 | ## Not run:
require(data.table)
dt <- data.table(x=c(1,1,1,2,2), y=c(3,3,4,5,6))
strictly_nonunique(dt) # Only 1,3 occurs more than once
strictly_nonunique(dt, "x") # all values occur more than once
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.