Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xyboth

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"

CUFF

Charles's Utility Function using Formula

v1.7
GPL (>= 2)
Authors
Charles-Édouard Giguère
Initial release
2020-09-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.