Union (Logical OR) of Fuzzy Sets

S1 %|% S2

Arguments

S1

A Set

S2

A Set

Value

Returns the union of S1 and S2.

Details

Both S1 and S2 must be Sets.

Examples

# Build two sparse sets
S <- Set$new(attributes = c("A", "B", "C"))
S$assign(A = 1, B = 1)
T <- Set$new(attributes = c("A", "B", "C"))
T$assign(C = 1)

# Union
S %|% T
#> {A, B, C}