intersectR: A recursive function getting intersection from mutiple...

Description Usage Arguments Value Examples

Description

A recursive function getting intersection from mutiple vectors. does not promise to keep any sorting

Usage

1

Arguments

...

Two or more vectors

Value

a vector with overlapping values from all passed vectors

Examples

1
2
3
4
5
6
7
v1 = c(1,2,3,4,5)
v2 = c(1,2,3,4)
v3 = c(2,3,4,5)
v4 = c(4,3,2,6,1)

intersectR(v1, v2, v3, v4)
#returns 4, 3, 2

jacobfredsoee/LCEF documentation built on May 7, 2019, 9:21 p.m.