リストの要素にアクセスする
> mylist <- list(letters = c("A", "B", "C"), number = 1:3, matrix(1:25,ncol=5))
> mylist[1]
$letters
[1] "A" "B" "C"
> mylist$letters
[1] "A" "B" "C"
> mylist[[1]]
[1] "A" "B" "C"
リストをベクトルに変換する
unlist(x)
異種データの集まり
> mylist <- list(letters = c("A", "B", "C"), number = 1:3, matrix(1:25,ncol=5))
> mylist[1]
$letters
[1] "A" "B" "C"
> mylist$letters
[1] "A" "B" "C"
> mylist[[1]]
[1] "A" "B" "C"
unlist(x)