3.1 Comparing elements (1)

We have the usual binary operators : < , >, <= , >=, == and !=

They operate elementwise:

c(1, 2, 3, 4) == c(2, 2, 3, 8)
## [1] FALSE  TRUE  TRUE FALSE

And R apply the recycle rule:

3 < 1:5
## [1] FALSE FALSE FALSE  TRUE  TRUE