Description Usage Arguments Value Author(s)
nonUniq(x) returns items in x that occur more than once (indices or values)
1 | nonUniq(x, value = F, na.rm = T)
|
x |
vector or matrix. Missing values are ignored. |
value |
logical; if TRUE, return the unique elements in x that occur more than once. If FALSE (default), return their indices. |
na.rm |
logical; if TRUE, ignore missing values (NA's) |
If value==F, an integer vector with positions (indices) of non-unique elements of x; otherwise, a vector with the unique elements of x that occur more than once. Thus: all(nonUniq(x, value=T)==unique(x[nonUniq(x)])) is TRUE
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.