Introduction
Operator precedence tells R which math or logic steps to do first when there are many in one line.
When you write math formulas with many operations like +, -, *, /.
When you combine conditions using AND, OR in if statements.
When you want to make sure R calculates parts of your code in the right order.
When you use parentheses to change the normal order of calculation.
When debugging why a calculation gives an unexpected result.