xyboth {CUFF}R Documentation

Utility function to match 2 indices

Description

Function %xyb% or xyboth(x, y) shows index present in x, y and both

Usage

x %xyb% y
xyboth(x, y)

Arguments

x

vector(matrix/dataframe) of indices

y

vector(matrix/dataframe) of indices

Value

Returns a list with indices present only in x and y and in both.

Author(s)

Charles-Édouard Giguère

Examples

require(CUFF)
xyboth(1:5, 3:6)
### $x
### [1] "1" "2"
### 
### $y
### [1] "6"
### 
### $both
### [1] "3" "4" "5"

[Package CUFF version 1.9 Index]