imset_arith: Overload arithmetic for imsets

imset_arithR Documentation

Overload arithmetic for imsets

Description

Overload arithmetic for imsets

Usage

## S3 method for class 'imset'
e1 + e2

## S3 method for class 'imset'
e1 - e2

Arguments

e1, e2

two imsets

Details

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.

Functions

  • + : Add imsets

  • - : Subtract imsets


rje42/imset documentation built on March 20, 2023, 9:55 a.m.