Problems with accessing double elements in a list in R

前端 未结 2 379
时光说笑
时光说笑 2021-01-28 03:58

I have performed a bootstrapping with 2.000 resamples of the Lee Carter model for mortality projection. The question is not specific for mortality studies, but on more general d

2条回答
  •  我在风中等你
    2021-01-28 04:45

    It looks like you need the apply family of functions. Your data is not reproducible, so I can't confirm this will work, but if you do:

    result <- sapply(JA_lc_fitM_boot1[["bootParameters"]], function(var) var[["bx"]][[70]])
    

    You should get what you're looking for.

提交回复
热议问题