Arithmetic Operators

65+10 #addition
## [1] 75
50-1 #subtraction
## [1] 49
7*5 #multiplication
## [1] 35
10/5 #division
## [1] 2
5^2 #exponentiation 
## [1] 25
5**2 #exponentiation 
## [1] 25
7%%3 #modulus
## [1] 1
7%/%3 #integer division
## [1] 2

Logical Operators

getwd()
## [1] "/Users/maj.mobajer/Desktop/R/Rmd "

10<9 #less than 
## [1] FALSE
16<=19 #less than or equal
## [1] TRUE
19>2 #greater than
## [1] TRUE
20>=26 #greater than or equal
## [1] FALSE
61==9 #exactly equal to
## [1] FALSE
12!=8 #not equal to
## [1] TRUE
TRUE|FALSE #True or False
## [1] TRUE
TRUE&FALSE#True and False
## [1] FALSE