Learn R Programming

set (version 1.2)

or: Get Union Set for Sets

Description

Get union set for sets.

Usage

or(...)

a %or% b

Arguments

...

one or more objects

a

one object

b

the other object

Value

union elements

Examples

Run this code
# NOT RUN {
A <- c("a","b","c")
B <- c("a","b","c","d")
C <- c("a","e","h")
or(A, B)
or(A, B, C)
A <- c("a","b","c")
B <- c("a","b","c","d")
C <- c("a","e","h")
A %or% B
A %and% B %or% C
# }

Run the code above in your browser using DataLab