Intersect {Rfast2} | R Documentation |
Intersect Operation
Description
Performs intersection in the same manner as R's base package intersect works.
Usage
Intersect(x, y)
Arguments
x , y |
vectors containing a sequence of items, ideally of the same mode |
Details
The function will discard any duplicated values in the arguments.
Value
The function will return a vector of the same mode as the arguments given. NAs will be removed.
Author(s)
Marios Dimitriadis.
R implementation and documentation: Marios Dimitriadis <kmdimitriadis@gmail.com>.
See Also
Examples
x <- c(sort(sample(1:20, 9)))
y <- c(sort(sample(3, 23, 7)))
Intersect(x, y)
[Package Rfast2 version 0.1.5.2 Index]