Numbers and Math
Arithmetic Operators
Operator | Description |
---|---|
Addition | + |
Subtraction | - |
Multiplication | * |
Division | / |
Power (Exponent) | ^ or ** |
Remainder (Modulo) | %% |
Negation (for Bool) | !x |
Inputs:
Outputs:
Logical Operators
Operator | Description |
---|---|
> | Greater than |
< | Less than |
>= | Greater than or equal |
<= | Less than or equal |
== | Exactly equal |
!= | Not equal to |
& | Entry wise and |
Resources
R Documentation: Arithmetic
R Documentation: Logical Operators
Last updated