intersect.list {StabPerf} | R Documentation |
Multi-dimensional intersection of a list of vectors
Description
Calculates intersection set of a several vectors
Usage
intersect.list(list)
Arguments
list |
list. Vectors of which the intersection set will be returned |
Details
Uses the base::intersect
over 1 or more vectors (in a list
). Also redefines the standard intersect
to be generic so that this may be used simply by calling intersect
on a list
, without having to call intersect.list
explicitly.
Value
intersection |
numeric. Intersection vector. |
See Also
intersect
Examples
# Returns c(7,8,9,10)
intersect(list(c(1:10), c(5:10), c(7:15)))
[Package
StabPerf version 0.5
Index]