Arithmetic operators in R can be used to perform basic arithmetic operations and can be combined with parentheses to control the order of operations. A list of arithmetic operators is shown below.
Type |
Operator |
Example |
Addition |
|
|
Subtraction |
|
|
Multiplication |
|
|
Division |
|
|
Exponent |
|
|
Integer Division |
|
|
Modulus (Remainder) |
|
|