Description Usage Arguments Details Value Author(s) See Also Examples
Determines which elements of a vector are tied.
1 | psi.tied(x)
|
x |
a numeric vector |
Unlike duplicated
, this function returns all tied elements.
a logical vector with the value TRUE at the positions of the tied elements.
Georgi N. Boshnakov
1 2 3 4 5 6 | v1 <- sample(1:6,12,replace=TRUE)
psi.tied(v1)
duplicated(v1)
d1 <- data.frame(v=v1, tied=psi.tied(v1), dup=duplicated(v1))
d1$flag <- ifelse(d1$tied==d1$dup, "", "different")
d1 # show the difference between `psi.tied' and `duplicated'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.