.asym_compare | R Documentation |
Tensor comparison and asymmetric comparison between two vectors.
.ocompare(x, y)
.asym_compare(x, y)
x |
|
y |
.ocompare
(for "outer compare") returns a matrix whose (i,j)th
element is TRUE if x[i] is identical to y[j], and FALSE otherwise.
.asym_compare
calls .ocompare
and iterprets its result
asymmetrically. Elements of x
that are not in y
ae
considered "new". Similarly, Elements of y
that are not in
x
ae considered "removed". Elements that are in both are
"common".
Todo: check if the above is correct or the other way round! !!!
For .ocompare
, a matrix as described in Details.
For .asym_compare
a list with indices as follows.
i_new |
new elements, indices in |
i_removed |
removed elements, indices in |
i_common |
common elements, indices in |
Georgi N. Boshnakov
##---- Should be DIRECTLY executable !! ----
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.