- c
- seq
- :
3 ways to create vectors
examples/vectors/create_vectors.R
x = 1:3 y = seq(1, 3, 1) z = c(1, 2, 3) print(x) print(y) print(z) print(x == y) print(x == z) print(y == z) # 1 2 3 # 1 2 3 # 1 2 3 # TRUE TRUE TRUE # TRUE TRUE TRUE # TRUE TRUE TRUE