Intersect | R Documentation |
Having as input two sets of elements represented by two vectors, the intersection between the two sets is performed and the corresponding vector is returned.
Intersect(sub1, sub2)
sub1 |
first vector representing the first set |
sub2 |
second vector representing the second set |
vector that stores the elements common to the two input vectors
Giorgio Valentini valentini@di.unimi.it
# Intesection between two sets of elements represented by vectors
s1 <- 1:10;
s2 <- 3:12;
Intersect(s1, s2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.