and: Get Intersection Set for Sets

Description Usage Arguments Value Examples

View source: R/and.R

Description

Get intersection set for sets.

Usage

1
2
3
and(...)

a %and% b

Arguments

...

one or more objects

a

one object

b

the other object

Value

intersection elements

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
A <- c("a","b","c")
B <- c("a","b","c","d")
C <- c("a","e","h")
and(A, B)
and(A, B, C)
A <- c("a","b","c")
B <- c("a","b","c","d")
C <- c("a","e","h")
A %and% B
A %and% B %and% C

set documentation built on Feb. 26, 2021, 5:10 p.m.

Related to and in set...