intersect2: 'intersect' for multiple input vectors or lists

View source: R/intersect2.R

intersect2R Documentation

'intersect' for multiple input vectors or lists

Description

Function to check the intersect within multiple vectors or lists.

Usage

intersect2(...)

Arguments

...

vectors to check for intersect or lists.

Value

Returns the intersect of all given inputs.

Author(s)

Jakob Gepp

See Also

I found this function on this post here and adjusted it a bit.

Examples

intersect2(list(c(1:3), c(1:4)), list(c(1:2),c(1:3)), c(1:2))
# [1] 1 2


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.