Skip to content
Prev 325530 / 398503 Next

package expm: matrix powers within a product of matrices: operation precedence

All operators of the form %<something>% have the same precedence,
that of %*%.    R does not look at the <something> between the percent
signs to determine the precedence.  Hence you must use parentheses
to get the order of operations that you want.

(I think that %<something>% operators are overused - providing the same
functionality in a standard functional form is often more convenient.  It
certainly would eliminate your problem.)

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com