Description Usage Arguments Details Value Examples
Difference in SparseSets
1 | S1 %-% S2
|
S1 |
A |
S2 |
A |
Both S1
and S2
must be SparseSets.
Returns the difference S1 - S2
.
1 2 3 4 5 6 7 8 | # Build two sparse sets
S <- SparseSet$new(attributes = c("A", "B", "C"))
S$assign(A = 1, B = 1)
T <- SparseSet$new(attributes = c("A", "B", "C"))
T$assign(A = 1)
# Difference
S %-% T
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.