intersect2 | R Documentation |
Function to check the intersect within multiple vectors or lists.
intersect2(...)
... |
vectors to check for intersect or lists. |
Returns the intersect of all given inputs.
Jakob Gepp
I found this function on this post here and adjusted it a bit.
intersect2(list(c(1:3), c(1:4)), list(c(1:2),c(1:3)), c(1:2))
# [1] 1 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.