实例 R 语言 访问列表

x
 
thislist <- list("apple", "banana", "cherry")
thislist[1]
                    

输出结果

[[1]]
[1] "apple"