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]]则不包括
轻诺必寡信,多易必多难
Lst<-list(name='bob',wife='hand',no.children=3,child.age=c(4,1,5))
Lst[1]和Lst[[1]]
Lst[1]输出结果 包含列表中值所对应的key名称的 Lst[[1]]则不包括