R-intro中列表取值


Lst<-list(name='bob',wife='hand',no.children=3,child.age=c(4,1,5))

区别

Lst[1]和Lst[[1]]

Lst[1]输出结果 包含列表中值所对应的key名称的 Lst[[1]]则不包括


imageimage

posted @ 2019-12-06 17:42  余者皆可  阅读(212)  评论(0)    收藏  举报