18.12 Associativity
- The second source of ambiguity is introduced by repeated usage of the same infix function.
In this case it doesn’t matter. Other places it might, like in
ggplot2
.In R, most operators are left-associative, i.e. the operations on the left are evaluated first:
- There’s two exceptions to this rule:
- exponentiation
- assignment