Introduction to lists

Often unnamed.

anotherlist <- list("a", list(TRUE, FALSE))
anotherlist
## [[1]]
## [1] "a"
## 
## [[2]]
## [[2]][[1]]
## [1] TRUE
## 
## [[2]][[2]]
## [1] FALSE
str(anotherlist)
## List of 2
##  $ : chr "a"
##  $ :List of 2
##   ..$ : logi TRUE
##   ..$ : logi FALSE
anotherlist[[2]]
## [[1]]
## [1] TRUE
## 
## [[2]]
## [1] FALSE
anotherlist[[2]][[1]]
## [1] TRUE