setunique | R Documentation |
These functions are like [base::unique()] and [base::duplicated()] except they only look at whether two list elements contain the same values - the order does not matter.
setunique(x)
setduplicated(x)
x |
A list of vectors |
For setunique()
, a list of unique sets.
For setduplicated()
, a logical vector indicating whether
a set occurred previously.
Sercan Kahveci
mysets <- list(a=1:3,b=2,c=3:1,d=c(1,3))
setunique(mysets)
setduplicated(mysets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.