2022-09-26
We can make a choose some ice cream flavors and put them in a list.
flavors <- list("vanilla", "chocolate", "strawberry")
flavors
## [[1]]
## [1] "vanilla"
##
## [[2]]
## [1] "chocolate"
##
## [[3]]
## [1] "strawberry"
We can also choose some brands of chocolate and put them in a vector.
chocolates <- c("Lindt", "Cadbury", "Ferrero")
chocolates
## [1] "Lindt" "Cadbury" "Ferrero"