Vectors are a type of lego block in R.

my_vector <- c(1,1,2,3,5,8) # using the concatenate "c()" operator

cartoons <- c("Spongebob", "Bugs Bunny", "Peter Griffin")

The colon “:” is useful for generating sequential numbers

one_thru_ten <- 1:10
one_thru_ten
##  [1]  1  2  3  4  5  6  7  8  9 10

You can select particular elements with the “[]” notation

cartoons[2] #second element of cartoons
## [1] "Bugs Bunny"
my_vector[4] #fourth element of my_vector
## [1] 3