Intersect | R Documentation |
Performs intersection in the same manner as R's base package intersect works.
Intersect(x, y)
x , y |
vectors containing a sequence of items, ideally of the same mode |
The function will discard any duplicated values in the arguments.
The function will return a vector of the same mode as the arguments given. NAs will be removed.
Marios Dimitriadis.
R implementation and documentation: Marios Dimitriadis <kmdimitriadis@gmail.com>.
intersect
x <- c(sort(sample(1:20, 9)))
y <- c(sort(sample(3, 23, 7)))
Intersect(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.