Description Usage Arguments Value Examples
View source: R/stringmanipulation.R
A recursive function getting intersection from mutiple vectors. does not promise to keep any sorting
1 |
... |
Two or more vectors |
a vector with overlapping values from all passed vectors
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.