powered by
Function %xyb% or xyboth(x, y) shows index present in x, y and both
x %xyb% y xyboth(x, y)
Returns a list with indices present only in x and y and in both.
vector(matrix/dataframe) of indices
Charles-Édouard Giguère
require(CUFF) xyboth(1:5, 3:6) ### $x ### [1] "1" "2" ### ### $y ### [1] "6" ### ### $both ### [1] "3" "4" "5"
Run the code above in your browser using DataLab