📜  r 定义嵌套空列表 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:52:01.234000             🧑  作者: Mango

代码示例1
my.list<-lapply(my.list<-vector(mode = 'list',5),function(x) # 1st level with 5 objects
      x<-lapply(x<-vector(mode = 'list',3),function(x)       # 2nd level with 3 nested objects
      x<-vector(mode='list',2)))                             # 3rd level with 2 nested objects