Description Usage Arguments Value Author(s)
samediff returns a list with elements of a and b in common, and unique to each, or numbers of unique elements in such a list.
1 |
a |
a vector or other object that can be treated as a vector OR a two-element list of vectors; if a is a list, all subsequent arguments must be named and b will be ignored. If use.arg.names==TRUE, the names of the list elements will be used to label the output |
b |
a second vector or other object that can be treated as a vector unless a is a two-element list, in which case b is ignored. |
sort |
logical; determines whether the elements of A and B will be returned in alphabetical order |
na.rm |
logical; should missing values be removed from A and B? |
use.arg.names |
if true, the names of the variables passed in as argumentsa and b to this function will be substituted for the default names "a.only" and "b.only" in the list returned. Default FALSE. |
Ns |
logical; if TRUE, return a vector of the numbers of item in common and unique to a and b |
A list, with three named character strings:
"in.both": intersection of a and b
"a.only": (or the name of a, if use.arg.names==T): elements unique to a
"b.only": (or the name of b, if use.arg.names==T): elements unique to b
...OR a named numeric vector with the numbers of items in common, unique to a and unique to b, with the same names as above
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.