Web EndMemo

R Operators

+Add, 2 + 3 = 5
-Subtract, 5 - 2 = 3
*Multiply, 2 * 3 = 6
/Divide, 6 / 2 = 3
^Exponent, 2 ^ 3 = 8
%%Modulus operator, 9%%2 = 1
%/%Integer division, 9 %/% 2 = 4
<Less than
>Greater than
=Equal to
<=Less than or equal to
>=Greater than or equal to
!=Not equal to
!Not
|OR
&And

Define new operators:
Let's define "+" not as add, but as multiply:

>'+' <- function(x,y) x * y
>3 + 5
[1] 15

Let's delete the self defined operator "+":
>rm('+')
>3 + 5
[1] 8