# Create two numeric vectors. > x <- 1:5 # An equivalent form is: x <- c(1:5). > y <- 6 # Remember that the : symbol, when used with numbers, is the sequence operator. # It tells R to create a series of numbers increasing by 1. # Equivalent to this is x <- c(1,2,3,4,5) # Let's sum both vectors. # 6 is added to all elements of the x vector. > x + y [1] 7 8 9 10 11 # Let's multiply x by itself. > x * y [1] 6 12 18 24 30