operations: Operations on formula terms and expressions

operationsR Documentation

Operations on formula terms and expressions

Description

Operations on formula terms and expressions

Usage

## S4 method for signature 'lgprhs,lgprhs'
e1 + e2

## S4 method for signature 'lgpterm,lgpterm'
e1 + e2

## S4 method for signature 'lgprhs,lgpterm'
e1 + e2

## S4 method for signature 'lgpterm,lgpterm'
e1 * e2

Arguments

e1

The first sum, term or expression

e2

The second sum, term or expression

Value

The behaviour and return type depend on the types of e1 and e2. You can

  • sum (+) two lgprhs's to yield an lgprhs

  • sum (+) two lgpterm's to yield an lgprhs

  • sum (+) an lgprhs and an lgpterm to yield an lgprhs

  • multiply (*) two lgpterm's to yield an lgpterm


jtimonen/lgpr documentation built on Oct. 12, 2023, 11:13 p.m.