Working in Logical mode :
> 3==4 # [ This means, is 3 = 4 ?]
[1] F # [ The result says “ FALSE ” or F only]
> 3!=4
[1] T
> 3<4
[1] T
> 3>4
[1] F
> 3<=4
[1] T
> 3>=4
[1] F
> x
[1] 1 2 3
> x<3
[1] T T F
> x==2
[1] F T F
> sum(x<3)
[1] 2
> x[x<3]
[1] 1 2
> x[x<3 & x!=1]
[1] 2
> x[x==y]
[1] 1 2 3
Warning messages:
Length of longer object is not a multiple of the length of the shorter object
in: x == y