Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Operators comparing vectors

# Show how to compare a vector with an individual value (=> this just plays on the shorter being repeated to the length of the longer)
x = c(1, 2)
y = c(11, 0)

x > y
x < y
x <= y
x >= y
x == y
x != y