Description Usage Arguments Value Examples
CID.IsUnique
returns a Boolean for the unique elements of a vector.
1 | CID.IsUnique(x)
|
x |
A character vector |
boolean, unique elements are TRUE
1 2 3 4 5 6 | # generate a dummy variable
dummy = c("A", "A", "B", "C")
# get only unique elements
logik = CID.IsUnique(dummy)
dummy[logik]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.