imset_arith | R Documentation |
Overload arithmetic for imsets
## S3 method for class 'imset'
e1 + e2
## S3 method for class 'imset'
e1 - e2
e1, e2 |
two imsets |
These functions are important, because they prevent accidentally adding imsets with a different number of variables to one another, and the recycling in R giving the wrong answer.
+
: Add imsets
-
: Subtract imsets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.