%-% | R Documentation |

Difference in Sets

S1 %-% S2

`S1` |
A |

`S2` |
A |

Both `S1`

and `S2`

must be Sets.

Returns the difference `S1 - S2`

.

# 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(A = 1) # Difference S %-% T

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.